Fix tests
This commit is contained in:
parent
4a8ccdcc0b
commit
633293fc3a
@ -2,7 +2,7 @@
|
||||
// Regression test for issues #68489 and #70987
|
||||
// Tests that we properly break tokens in `probably_equal_for_proc_macro`
|
||||
// See #72306
|
||||
//
|
||||
//
|
||||
// Note that the weird spacing in this example is critical
|
||||
// for testing the issue.
|
||||
|
||||
|
@ -16,6 +16,7 @@ pub struct Qux<T>(T);
|
||||
|
||||
#[dom_struct]
|
||||
pub struct Foo {
|
||||
//~^ ERROR trait objects without an explicit `dyn` are deprecated [bare_trait_objects]
|
||||
qux: Qux<Qux<Baz>>,
|
||||
bar: Box<Bar>,
|
||||
//~^ ERROR trait objects without an explicit `dyn` are deprecated [bare_trait_objects]
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/issue-61963.rs:20:14
|
||||
--> $DIR/issue-61963.rs:21:14
|
||||
|
|
||||
LL | bar: Box<Bar>,
|
||||
| ^^^ help: use `dyn`: `dyn Bar`
|
||||
@ -10,5 +10,11 @@ note: the lint level is defined here
|
||||
LL | #![deny(bare_trait_objects)]
|
||||
| ^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
error: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/issue-61963.rs:18:1
|
||||
|
|
||||
LL | pub struct Foo {
|
||||
| ^^^ help: use `dyn`: `dyn pub`
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user