summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lifetimes/undeclared-lifetime-used-in-debug-macro-issue-70152.rs
blob: cc29f9de7fb4a45216be336069ce7ed1b2b26caa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[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() {}