diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2020-02-19 15:57:21 -0800 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2020-02-28 11:37:59 -0800 |
| commit | 01286408c1d4ac9d862801ac102ce4de44fc095b (patch) | |
| tree | a8bda7752acd9a00d3df68817a214c8066def7b5 /src/test/ui/issues | |
| parent | 392d853589721ffef1f32181d6c3959f0284e4fb (diff) | |
| download | rust-01286408c1d4ac9d862801ac102ce4de44fc095b.tar.gz rust-01286408c1d4ac9d862801ac102ce4de44fc095b.zip | |
Account for arbitrary self types in E0599
Diffstat (limited to 'src/test/ui/issues')
| -rw-r--r-- | src/test/ui/issues/issue-5153.stderr | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/test/ui/issues/issue-5153.stderr b/src/test/ui/issues/issue-5153.stderr index 44ef73550f8..93aaf4b9d82 100644 --- a/src/test/ui/issues/issue-5153.stderr +++ b/src/test/ui/issues/issue-5153.stderr @@ -1,13 +1,11 @@ error[E0599]: no method named `foo` found for reference `&dyn Foo` in the current scope --> $DIR/issue-5153.rs:10:27 | -LL | trait Foo { - | --------- `Foo` defines an item `foo`, perhaps you need to implement it +LL | fn foo(self: Box<Self>); + | --------- the method might not be found because of this arbitrary self type ... LL | (&5isize as &dyn Foo).foo(); | ^^^ method not found in `&dyn Foo` - | - = help: items from traits can only be used if the trait is implemented and in scope error: aborting due to previous error |
