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
4 LL | trait B { fn foo(self: Box<Self>); }
5 | --- the method is available for `std::boxed::Box<A>` here
7 | --------- method `foo` not found for this
10 | ^^^ method not found in `A`
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:
16 error: aborting due to previous error
18 For more information about this error, try `rustc --explain E0599`.