1 // See https://github.com/rust-lang/rust/issues/88508
4 #![deny(bare_trait_objects)]
6 #![allow(unused_imports)]
13 impl fmt::Display for Foo {
14 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
15 <fmt::Debug>::fmt(self, f)
16 //~^ ERROR trait objects without an explicit `dyn` are deprecated
17 //~| WARNING this is accepted in the current edition