]> git.lizzy.rs Git - rust.git/blob - tests/ui/on-unimplemented/no-debug.rs
Rollup merge of #106797 - FawazTirmizi:dev/issues/104284, r=bjorn3
[rust.git] / tests / ui / on-unimplemented / no-debug.rs
1 // aux-build:no_debug.rs
2
3 extern crate no_debug;
4
5 use no_debug::Bar;
6
7 struct Foo;
8
9 fn main() {
10     println!("{:?} {:?}", Foo, Bar);
11     println!("{} {}", Foo, Bar);
12 }
13 //~^^^ ERROR `Foo` doesn't implement `Debug`
14 //~| ERROR `Bar` doesn't implement `Debug`
15 //~^^^^ ERROR `Foo` doesn't implement `std::fmt::Display`
16 //~| ERROR `Bar` doesn't implement `std::fmt::Display`