summaryrefslogtreecommitdiffstats
path: root/src/test/ui/self/point-at-arbitrary-self-type-trait-method.rs
blob: 53d992771186f152d30e9e422902a4ec728b04d7 (plain)
1
2
3
4
5
6
7
8
9
10
trait B { fn foo(self: Box<Self>); }
struct A;

impl B for A {
    fn foo(self: Box<Self>) {}
}

fn main() {
    A.foo() //~ ERROR E0599
}