Skip to content

Commit

Permalink
update ui test to new error message
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeyhew committed Nov 8, 2017
1 parent aa00f17 commit 7f8b003
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions src/test/ui/span/issue-27522.stderr
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
error[E0308]: mismatched method receiver
error[E0307]: invalid `self` type: &SomeType
--> $DIR/issue-27522.rs:16:22
|
16 | fn handler(self: &SomeType);
| ^^^^^^^^^ expected Self, found struct `SomeType`
| ^^^^^^^^^
|
= note: expected type `&Self`
found type `&SomeType`
= note: type must be `Self` or a type that dereferences to it`
= help: consider changing to `self`, `&self`, `&mut self`, or `self: Box<Self>`

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

error: aborting due to 2 previous errors

0 comments on commit 7f8b003

Please sign in to comment.