2020-03-30 08:40:23 +02:00
|
|
|
struct S {}
|
|
|
|
|
|
|
|
impl S {
|
|
|
|
fn foo(&mur Self) {}
|
|
|
|
//~^ ERROR expected identifier, found keyword `Self`
|
|
|
|
//~| ERROR expected one of `:`, `@`
|
2024-03-22 16:56:13 -04:00
|
|
|
//~| ERROR expected unit struct, found self constructor `Self`
|
2020-03-30 08:40:23 +02:00
|
|
|
fn bar(&'static mur Self) {}
|
|
|
|
//~^ ERROR unexpected lifetime
|
|
|
|
//~| ERROR expected identifier, found keyword `Self`
|
|
|
|
//~| ERROR expected one of `:`, `@`
|
2024-03-22 16:56:13 -04:00
|
|
|
//~| ERROR expected unit struct, found self constructor `Self`
|
2020-03-30 08:40:23 +02:00
|
|
|
|
|
|
|
fn baz(&mur Self @ _) {}
|
|
|
|
//~^ ERROR expected one of `:`, `@`
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|