mirror of
https://git.proxmox.com/git/rustc
synced 2026-01-19 23:28:37 +00:00
14 lines
204 B
Rust
14 lines
204 B
Rust
#![allow(dead_code)]
|
|
|
|
struct Foo {
|
|
secret: u64,
|
|
}
|
|
|
|
opaque_debug::implement!(Foo);
|
|
|
|
#[test]
|
|
fn debug_formatting() {
|
|
let s = format!("{:?}", Foo { secret: 42 });
|
|
assert_eq!(s, "Foo { ... }");
|
|
}
|