]> git.lizzy.rs Git - rust.git/blob - src/test/ui/self/point-at-arbitrary-self-type-trait-method.stderr
Update ui tests
[rust.git] / src / test / ui / self / point-at-arbitrary-self-type-trait-method.stderr
1 error[E0599]: no method named `foo` found for type `A` in the current scope
2   --> $DIR/point-at-arbitrary-self-type-trait-method.rs:9:7
3    |
4 LL | trait B { fn foo(self: Box<Self>); }
5    |              --- the method is available for `std::boxed::Box<A>` here
6 LL | struct A;
7    | --------- method `foo` not found for this
8 ...
9 LL |     A.foo()
10    |       ^^^ method not found in `A`
11    |
12    = help: items from traits can only be used if the trait is implemented and in scope
13    = note: the following trait defines an item `foo`, perhaps you need to implement it:
14            candidate #1: `B`
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0599`.