]>
Commit | Line | Data |
---|---|---|
dfeec247 | 1 | error[E0599]: no method named `foo` found for struct `A` in the current scope |
e1599b0c XL |
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>) {} | |
1b1a35ee | 8 | | --- the method is available for `Box<A>` here |
e1599b0c XL |
9 | ... |
10 | LL | A.foo(); | |
11 | | ^^^ method not found in `A` | |
cdc7bbd5 XL |
12 | | |
13 | help: consider wrapping the receiver expression with the appropriate type | |
14 | | | |
15 | LL | Box::new(A).foo(); | |
16 | | ^^^^^^^^^ ^ | |
e1599b0c XL |
17 | |
18 | error: aborting due to previous error | |
19 | ||
20 | For more information about this error, try `rustc --explain E0599`. |