blob: f2fb62d76f3d1d11d4b69f8626bbecf1a882446d (
plain)
1
2
3
4
5
6
7
|
// 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`
}
|