mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
17 lines
309 B
Rust
17 lines
309 B
Rust
#[derive(Eq, PartialEq)]
|
|
struct Test {
|
|
a: &'b str,
|
|
//~^ ERROR use of undeclared lifetime name `'b`
|
|
//~| ERROR use of undeclared lifetime name `'b`
|
|
}
|
|
|
|
trait T {
|
|
fn foo(&'static self) {}
|
|
}
|
|
|
|
impl T for Test {
|
|
fn foo(&'b self) {} //~ ERROR use of undeclared lifetime name `'b`
|
|
}
|
|
|
|
fn main() {}
|