Sign in
fuchsia
/
third_party
/
rust
/
a10a02bf5fd00e4b34f1856af17d058dd5ec06f0
/
.
/
src
/
test
/
ui
/
rfc-2361-dbg-macro
/
dbg-macro-requires-debug.rs
blob: f2fb62d76f3d1d11d4b69f8626bbecf1a882446d [
file
] [
log
] [
blame
]
// Test ensuring that `dbg!(expr)` requires the passed type to implement `Debug`.
struct
NotDebug
;
fn
main
()
{
let
_
:
NotDebug
=
dbg
!(
NotDebug
);
//~ ERROR `NotDebug` doesn't implement `Debug`
}