diff options
| author | Michael Hewson <michael@michaelhewson.ca> | 2017-11-08 16:12:34 -0500 |
|---|---|---|
| committer | Michael Hewson <michael@michaelhewson.ca> | 2017-11-08 16:12:34 -0500 |
| commit | 7f8b003fbb965a3abfec75c70999332035d1f613 (patch) | |
| tree | 7cf610436bf50d1ba522386e8390fce4e425cb03 | |
| parent | aa00f17409ab7f3403bd94f266387bb735ac3ef3 (diff) | |
| download | rust-7f8b003fbb965a3abfec75c70999332035d1f613.tar.gz rust-7f8b003fbb965a3abfec75c70999332035d1f613.zip | |
update ui test to new error message
| -rw-r--r-- | src/test/ui/span/issue-27522.stderr | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/src/test/ui/span/issue-27522.stderr b/src/test/ui/span/issue-27522.stderr index 117b109780b..e3191d7eb22 100644 --- a/src/test/ui/span/issue-27522.stderr +++ b/src/test/ui/span/issue-27522.stderr @@ -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 |
