rust/src/test/ui/error-codes/E0637.rs
2018-12-25 21:08:33 -07:00

9 lines
225 B
Rust

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() {}