rust/tests/ui/lifetimes/undeclared-lifetime-used-in-debug-macro-issue-70152.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
309 B
Rust
Raw Normal View History

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