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