1 // aux-build:issue-61963.rs
2 // aux-build:issue-61963-1.rs
3 #![deny(bare_trait_objects)]
6 extern crate issue_61963;
8 extern crate issue_61963_1;
10 // This test checks that the bare trait object lint does not trigger on macro attributes that
11 // generate code which would trigger the lint.
19 //~^ ERROR trait objects without an explicit `dyn` are deprecated [bare_trait_objects]
20 //~| WARN this is accepted in the current edition
21 //~| ERROR trait objects without an explicit `dyn` are deprecated [bare_trait_objects]
22 //~| WARN this is accepted in the current edition
23 //~| ERROR trait objects without an explicit `dyn` are deprecated [bare_trait_objects]
24 //~| WARN this is accepted in the current edition
25 //~| ERROR trait objects without an explicit `dyn` are deprecated [bare_trait_objects]
26 //~| WARN this is accepted in the current edition
29 //~^ ERROR trait objects without an explicit `dyn` are deprecated [bare_trait_objects]
30 //~| WARN this is accepted in the current edition
31 //~| ERROR trait objects without an explicit `dyn` are deprecated [bare_trait_objects]
32 //~| WARN this is accepted in the current edition
33 //~| ERROR trait objects without an explicit `dyn` are deprecated [bare_trait_objects]
34 //~| WARN this is accepted in the current edition