fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0261]: use of undeclared lifetime name `'b` 2 --> $DIR/undeclared-lifetime-used-in-debug-macro-issue-70152.rs:3:9 3 | 4LL | struct Test { 5 | - help: consider introducing lifetime `'b` here: `<'b>` 6LL | a: &'b str, 7 | ^^ undeclared lifetime 8 9error[E0261]: use of undeclared lifetime name `'b` 10 --> $DIR/undeclared-lifetime-used-in-debug-macro-issue-70152.rs:3:9 11 | 12LL | #[derive(Eq, PartialEq)] 13 | -- lifetime `'b` is missing in item created through this procedural macro 14LL | struct Test { 15 | - help: consider introducing lifetime `'b` here: `<'b>` 16LL | a: &'b str, 17 | ^^ undeclared lifetime 18 19error[E0261]: use of undeclared lifetime name `'b` 20 --> $DIR/undeclared-lifetime-used-in-debug-macro-issue-70152.rs:13:13 21 | 22LL | fn foo(&'b self) {} 23 | ^^ undeclared lifetime 24 | 25help: consider introducing lifetime `'b` here 26 | 27LL | fn foo<'b>(&'b self) {} 28 | ++++ 29help: consider introducing lifetime `'b` here 30 | 31LL | impl<'b> T for Test { 32 | ++++ 33 34error: aborting due to 3 previous errors 35 36For more information about this error, try `rustc --explain E0261`.