about summary refs log tree commit diff
path: root/tests/ui/parser/issues/issue-70549-resolve-after-recovered-self-ctor.rs
blob: ada10fcda27d9dea0504589837d6d664e477c0ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
struct S {}

impl S {
    fn foo(&mur Self) {}
    //~^ ERROR expected identifier, found keyword `Self`
    //~| ERROR expected one of `:`, `@`
    //~| ERROR expected unit struct, found self constructor `Self`
    fn bar(&'static mur Self) {}
    //~^ ERROR unexpected lifetime
    //~| ERROR expected identifier, found keyword `Self`
    //~| ERROR expected one of `:`, `@`
    //~| ERROR expected unit struct, found self constructor `Self`

    fn baz(&mur Self @ _) {}
    //~^ ERROR expected one of `:`, `@`
}

fn main() {}