]> git.proxmox.com Git - rustc.git/blame - vendor/opaque-debug/tests/mod.rs
New upstream version 1.59.0+dfsg1
[rustc.git] / vendor / opaque-debug / tests / mod.rs
CommitLineData
1b1a35ee
XL
1#![allow(dead_code)]
2
3struct Foo {
4 secret: u64,
5}
6
7opaque_debug::implement!(Foo);
8
9#[test]
10fn debug_formatting() {
11 let s = format!("{:?}", Foo { secret: 42 });
12 assert_eq!(s, "Foo { ... }");
13}