]> git.lizzy.rs Git - rust.git/blob - src/test/ui/self/self-infer.rs
Rollup merge of #98640 - cuviper:stable-rust-analyzer, r=Mark-Simulacrum
[rust.git] / src / test / ui / self / self-infer.rs
1 struct S;
2
3 impl S {
4     fn f(self: _) {} //~ERROR the placeholder `_` is not allowed within types on item signatures for functions
5     fn g(self: &_) {} //~ERROR the placeholder `_` is not allowed within types on item signatures for functions
6 }
7
8 fn main() {}