]> git.proxmox.com Git - rustc.git/blame - src/test/ui/self/point-at-arbitrary-self-type-method.stderr
New upstream version 1.53.0+dfsg1
[rustc.git] / src / test / ui / self / point-at-arbitrary-self-type-method.stderr
CommitLineData
dfeec247 1error[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 |
4LL | struct A;
5 | --------- method `foo` not found for this
6...
7LL | fn foo(self: Box<Self>) {}
1b1a35ee 8 | --- the method is available for `Box<A>` here
e1599b0c
XL
9...
10LL | A.foo();
11 | ^^^ method not found in `A`
cdc7bbd5
XL
12 |
13help: consider wrapping the receiver expression with the appropriate type
14 |
15LL | Box::new(A).foo();
16 | ^^^^^^^^^ ^
e1599b0c
XL
17
18error: aborting due to previous error
19
20For more information about this error, try `rustc --explain E0599`.