Skip to content

Commit 633293f

Browse files
committed
Fix tests
1 parent 4a8ccdc commit 633293f

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

src/test/ui/proc-macro/break-token-spans.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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

src/test/ui/suggestions/issue-61963.rs

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ pub struct Qux<T>(T);
1616

1717
#[dom_struct]
1818
pub 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]

src/test/ui/suggestions/issue-61963.stderr

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: trait objects without an explicit `dyn` are deprecated
2-
--> $DIR/issue-61963.rs:20:14
2+
--> $DIR/issue-61963.rs:21:14
33
|
44
LL | bar: Box<Bar>,
55
| ^^^ help: use `dyn`: `dyn Bar`
@@ -10,5 +10,11 @@ note: the lint level is defined here
1010
LL | #![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

0 commit comments

Comments
 (0)