File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 22// Regression test for issues #68489 and #70987
33// Tests that we properly break tokens in `probably_equal_for_proc_macro`
44// See #72306
5- //
5+ //
66// Note that the weird spacing in this example is critical
77// for testing the issue.
88
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ pub struct Qux<T>(T);
1616
1717#[ dom_struct]
1818pub struct Foo {
19+ //~^ ERROR trait objects without an explicit `dyn` are deprecated [bare_trait_objects]
1920 qux : Qux < Qux < Baz > > ,
2021 bar : Box < Bar > ,
2122 //~^ ERROR trait objects without an explicit `dyn` are deprecated [bare_trait_objects]
Original file line number Diff line number Diff line change 11error: trait objects without an explicit `dyn` are deprecated
2- --> $DIR/issue-61963.rs:20 :14
2+ --> $DIR/issue-61963.rs:21 :14
33 |
44LL | bar: Box<Bar>,
55 | ^^^ help: use `dyn`: `dyn Bar`
@@ -10,5 +10,11 @@ note: the lint level is defined here
1010LL | #![deny(bare_trait_objects)]
1111 | ^^^^^^^^^^^^^^^^^^
1212
13- error: aborting due to previous error
13+ error: trait objects without an explicit `dyn` are deprecated
14+ --> $DIR/issue-61963.rs:18:1
15+ |
16+ LL | pub struct Foo {
17+ | ^^^ help: use `dyn`: `dyn pub`
18+
19+ error: aborting due to 2 previous errors
1420
You can’t perform that action at this time.
0 commit comments