1 // aux-build:no_debug.rs
2 
3 extern crate no_debug;
4 
5 use no_debug::Bar;
6 
7 struct Foo;
8 
main()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`
17