diff options
Diffstat (limited to 'src/test/ui/dyn-keyword/dyn-angle-brackets.rs')
-rw-r--r-- | src/test/ui/dyn-keyword/dyn-angle-brackets.rs | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/test/ui/dyn-keyword/dyn-angle-brackets.rs b/src/test/ui/dyn-keyword/dyn-angle-brackets.rs deleted file mode 100644 index ee5fee4cf..000000000 --- a/src/test/ui/dyn-keyword/dyn-angle-brackets.rs +++ /dev/null @@ -1,21 +0,0 @@ -// See https://github.com/rust-lang/rust/issues/88508 -// run-rustfix -// edition:2018 -#![deny(bare_trait_objects)] -#![allow(dead_code)] -#![allow(unused_imports)] - -use std::fmt; - -#[derive(Debug)] -pub struct Foo; - -impl fmt::Display for Foo { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - <fmt::Debug>::fmt(self, f) - //~^ ERROR trait objects without an explicit `dyn` are deprecated - //~| WARNING this is accepted in the current edition - } -} - -fn main() {} |