]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issue-70549-resolve-after-recovered-self-ctor.rs
Add 'compiler/rustc_codegen_cranelift/' from commit '793d26047f994e23415f8f6bb5686ff2...
[rust.git] / src / test / ui / parser / 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() {}