]> git.lizzy.rs Git - rust.git/blob - src/test/ui/self/point-at-arbitrary-self-type-method.stderr
Update ui tests
[rust.git] / src / test / ui / self / point-at-arbitrary-self-type-method.stderr
1 error[E0599]: no method named `foo` found for type `A` in the current scope
2   --> $DIR/point-at-arbitrary-self-type-method.rs:8:7
3    |
4 LL | struct A;
5    | --------- method `foo` not found for this
6 ...
7 LL |     fn foo(self: Box<Self>) {}
8    |        --- the method is available for `std::boxed::Box<A>` here
9 ...
10 LL |     A.foo();
11    |       ^^^ method not found in `A`
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0599`.