File tree 3 files changed +10
-3
lines changed
3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 2
2
// Regression test for issues #68489 and #70987
3
3
// Tests that we properly break tokens in `probably_equal_for_proc_macro`
4
4
// See #72306
5
- //
5
+ //
6
6
// Note that the weird spacing in this example is critical
7
7
// for testing the issue.
8
8
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ pub struct Qux<T>(T);
16
16
17
17
#[ dom_struct]
18
18
pub struct Foo {
19
+ //~^ ERROR trait objects without an explicit `dyn` are deprecated [bare_trait_objects]
19
20
qux : Qux < Qux < Baz > > ,
20
21
bar : Box < Bar > ,
21
22
//~^ ERROR trait objects without an explicit `dyn` are deprecated [bare_trait_objects]
Original file line number Diff line number Diff line change 1
1
error: trait objects without an explicit `dyn` are deprecated
2
- --> $DIR/issue-61963.rs:20 :14
2
+ --> $DIR/issue-61963.rs:21 :14
3
3
|
4
4
LL | bar: Box<Bar>,
5
5
| ^^^ help: use `dyn`: `dyn Bar`
@@ -10,5 +10,11 @@ note: the lint level is defined here
10
10
LL | #![deny(bare_trait_objects)]
11
11
| ^^^^^^^^^^^^^^^^^^
12
12
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
14
20
You can’t perform that action at this time.
0 commit comments