]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2361-dbg-macro/dbg-macro-requires-debug.rs
Rollup merge of #87441 - ibraheemdev:i-86865, r=cjgillot
[rust.git] / src / test / ui / rfc-2361-dbg-macro / dbg-macro-requires-debug.rs
1 // Test ensuring that `dbg!(expr)` requires the passed type to implement `Debug`.
2
3 struct NotDebug;
4
5 fn main() {
6     let _: NotDebug = dbg!(NotDebug); //~ ERROR `NotDebug` doesn't implement `Debug`
7 }