]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issues/issue-70549-resolve-after-recovered-self-ctor.rs
Rollup merge of #92399 - Veeupup:fix_vec_typo, r=Dylan-DPC
[rust.git] / src / test / ui / parser / issues / issue-70549-resolve-after-recovered-self-ctor.rs
1 struct S {}
2
3 impl S {
4     fn foo(&mur Self) {}
5     //~^ ERROR expected identifier, found keyword `Self`
6     //~| ERROR expected one of `:`, `@`
7     //~| ERROR the `Self` constructor can only be used with
8     fn bar(&'static mur Self) {}
9     //~^ ERROR unexpected lifetime
10     //~| ERROR expected identifier, found keyword `Self`
11     //~| ERROR expected one of `:`, `@`
12     //~| ERROR the `Self` constructor can only be used with
13
14     fn baz(&mur Self @ _) {}
15     //~^ ERROR expected one of `:`, `@`
16 }
17
18 fn main() {}