Skip to content

Commit 7f8b003

Browse files
committed
update ui test to new error message
1 parent aa00f17 commit 7f8b003

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

src/test/ui/span/issue-27522.stderr

+14-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
1-
error[E0308]: mismatched method receiver
1+
error[E0307]: invalid `self` type: &SomeType
22
--> $DIR/issue-27522.rs:16:22
33
|
44
16 | fn handler(self: &SomeType);
5-
| ^^^^^^^^^ expected Self, found struct `SomeType`
5+
| ^^^^^^^^^
66
|
7-
= note: expected type `&Self`
8-
found type `&SomeType`
7+
= note: type must be `Self` or a type that dereferences to it`
8+
= help: consider changing to `self`, `&self`, `&mut self`, or `self: Box<Self>`
99

10-
error: aborting due to previous error
10+
error: arbitrary `self` types are unstable (see issue #44874)
11+
--> $DIR/issue-27522.rs:16:22
12+
|
13+
16 | fn handler(self: &SomeType);
14+
| ^^^^^^^^^
15+
|
16+
= help: add #![feature(arbitrary_self_types)] to the crate attributes to enable
17+
= help: consider changing to `self`, `&self`, `&mut self`, or `self: Box<Self>`
18+
19+
error: aborting due to 2 previous errors
1120

0 commit comments

Comments
 (0)