]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lifetimes/undeclared-lifetime-used-in-debug-macro-issue-70152.rs
Rollup merge of #105555 - krasimirgg:llvm-int-opt-2, r=cuviper
[rust.git] / src / test / ui / lifetimes / undeclared-lifetime-used-in-debug-macro-issue-70152.rs
1 #[derive(Eq, PartialEq)]
2 struct Test {
3     a: &'b str,
4     //~^ ERROR use of undeclared lifetime name `'b`
5     //~| ERROR use of undeclared lifetime name `'b`
6 }
7
8 trait T {
9     fn foo(&'static self) {}
10 }
11
12 impl T for Test {
13     fn foo(&'b self) {} //~ ERROR use of undeclared lifetime name `'b`
14 }
15
16 fn main() {}