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`
}