2018-01-20 03:33:39 -06: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 02:40:56 -05:00
|
|
|
//~^^^ ERROR `Foo` doesn't implement `Debug`
|
|
|
|
//~| ERROR `Bar` doesn't implement `Debug`
|
2018-01-20 03:33:39 -06:00
|
|
|
//~^^^^ ERROR `Foo` doesn't implement `std::fmt::Display`
|
2020-09-02 02:40:56 -05:00
|
|
|
//~| ERROR `Bar` doesn't implement `std::fmt::Display`
|