]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/issue-61963.rs
Auto merge of #65099 - pnkfelix:issue-63154-needed-more-normalize, r=nagisa
[rust.git] / src / test / ui / suggestions / issue-61963.rs
1 // aux-build:issue-61963.rs
2 // aux-build:issue-61963-1.rs
3 #![deny(bare_trait_objects)]
4
5 #[macro_use]
6 extern crate issue_61963;
7 #[macro_use]
8 extern crate issue_61963_1;
9
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.
12
13 pub struct Baz;
14 pub trait Bar { }
15 pub struct Qux<T>(T);
16
17 #[dom_struct]
18 pub struct Foo {
19     qux: Qux<Qux<Baz>>,
20     bar: Box<Bar>,
21     //~^ ERROR trait objects without an explicit `dyn` are deprecated [bare_trait_objects]
22 }
23
24 fn main() {}