2018-01-20 01:33:39 -08:00
|
|
|
// aux-build:no_debug.rs
|
|
|
|
|
|
|
|
extern crate no_debug;
|
|
|
|
|
|
|
|
use no_debug::Bar;
|
|
|
|
|
|
|
|
struct Foo;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
println!("{:?} {:?}", Foo, Bar);
|
|
|
|
println!("{} {}", Foo, Bar);
|
|
|
|
}
|
2020-09-02 10:40:56 +03:00
|
|
|
//~^^^ ERROR `Foo` doesn't implement `Debug`
|
|
|
|
//~| ERROR `Bar` doesn't implement `Debug`
|
2018-01-20 01:33:39 -08:00
|
|
|
//~^^^^ ERROR `Foo` doesn't implement `std::fmt::Display`
|
2020-09-02 10:40:56 +03:00
|
|
|
//~| ERROR `Bar` doesn't implement `std::fmt::Display`
|