]> git.lizzy.rs Git - rust.git/blob - src/test/ui/self/point-at-arbitrary-self-type-trait-method.rs
Rollup merge of #101388 - compiler-errors:issue-101376, r=fee1-dead
[rust.git] / src / test / ui / self / point-at-arbitrary-self-type-trait-method.rs
1 trait B { fn foo(self: Box<Self>); }
2 struct A;
3
4 impl B for A {
5     fn foo(self: Box<Self>) {}
6 }
7
8 fn main() {
9     A.foo() //~ ERROR E0599
10 }