summaryrefslogtreecommitdiffstats
path: root/src/test/ui/self/point-at-arbitrary-self-type-method.rs
blob: 0f7deeacad29278c31be5a36d1e6ceaefafb9d73 (plain)
1
2
3
4
5
6
7
8
9
struct A;

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

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