19 lines
515 B
Rust
19 lines
515 B
Rust
|
struct S {}
|
||
|
|
||
|
impl S {
|
||
|
fn foo(&mur Self) {}
|
||
|
//~^ ERROR expected identifier, found keyword `Self`
|
||
|
//~| ERROR expected one of `:`, `@`
|
||
|
//~| ERROR the `Self` constructor can only be used with
|
||
|
fn bar(&'static mur Self) {}
|
||
|
//~^ ERROR unexpected lifetime
|
||
|
//~| ERROR expected identifier, found keyword `Self`
|
||
|
//~| ERROR expected one of `:`, `@`
|
||
|
//~| ERROR the `Self` constructor can only be used with
|
||
|
|
||
|
fn baz(&mur Self @ _) {}
|
||
|
//~^ ERROR expected one of `:`, `@`
|
||
|
}
|
||
|
|
||
|
fn main() {}
|