blob: e3d85ab891b5b46380c3a33110d5a1e152152b7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
struct S;
impl S {
fn a(&self: Self) {}
//~^ ERROR type not allowed for shorthand `self` parameter
fn b(&mut self: Self) {}
//~^ ERROR type not allowed for shorthand `self` parameter
fn c<'c>(&'c mut self: Self) {}
//~^ ERROR type not allowed for shorthand `self` parameter
fn d<'d>(&'d self: Self) {}
//~^ ERROR type not allowed for shorthand `self` parameter
}
fn main() {}
|