Sign in
fuchsia
/
fuchsia
/
main
/
.
/
third_party
/
rust_crates
/
vendor
/
opaque-debug-0.3.0
/
tests
/
mod.rs
blob: bcd575767af966199afb9fec33b49704a0b6b25e [
file
] [
log
] [
blame
]
#![
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 { ... }"
);
}