summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0637.rs
blob: b4888d4af6a218a9498e626b813b19e6a76b2cdf (plain)
1
2
3
4
5
6
7
8
9
struct Foo<'a: '_>(&'a u8); //~ ERROR cannot be used here
fn foo<'a: '_>(_: &'a u8) {} //~ ERROR cannot be used here

struct Bar<'a>(&'a u8);
impl<'a: '_> Bar<'a> { //~ ERROR cannot be used here
  fn bar() {}
}

fn main() {}