summaryrefslogtreecommitdiffstats
path: root/tests/ui/self/self-infer.rs
blob: 9839b8880e9e1f43a25ca014553ba0a61c8bbab9 (plain)
1
2
3
4
5
6
7
8
struct S;

impl S {
    fn f(self: _) {} //~ERROR the placeholder `_` is not allowed within types on item signatures for functions
    fn g(self: &_) {} //~ERROR the placeholder `_` is not allowed within types on item signatures for functions
}

fn main() {}