]> git.lizzy.rs Git - rust.git/blob - src/test/ui/on-unimplemented/no-debug.rs
Merge commit '266e96785ab71834b917bf474f130a6d8fdecd4b' into sync_cg_clif-2022-10-23
[rust.git] / src / test / 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`