2018-09-18 04:28:17 +02:00
|
|
|
// Test ensuring that `dbg!(expr)` requires the passed type to implement `Debug`.
|
|
|
|
|
|
|
|
|
|
struct NotDebug;
|
|
|
|
|
|
|
|
|
|
fn main() {
|
2020-09-02 10:40:56 +03:00
|
|
|
let _: NotDebug = dbg!(NotDebug); //~ ERROR `NotDebug` doesn't implement `Debug`
|
2018-09-18 04:28:17 +02:00
|
|
|
}
|