update ui test to new error message

This commit is contained in:
Michael Hewson 2017-11-08 16:12:34 -05:00
parent aa00f17409
commit 7f8b003fbb
1 changed files with 14 additions and 5 deletions

View File

@ -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