blob: 5a06d56c83f24261c62effe74350fb929215ff12 [file] [log] [blame]
// Check that `self::foo` is parsed as a general pattern and not a self argument.
struct S;
impl S {
fn f(self::S: S) {}
fn g(&self::S: &S) {}
fn h(&mut self::S: &mut S) {}
fn i(&'a self::S: &S) {} //~ ERROR unexpected lifetime `'a` in pattern
}
fn main() {}