]> git.proxmox.com Git - rustc.git/blob - src/test/ui/lifetimes/undeclared-lifetime-used-in-debug-macro-issue-70152.stderr
16333a7ca380c68e6a72400393cc6e0b60c32c5d
[rustc.git] / src / test / 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 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
10
11 error[E0261]: use of undeclared lifetime name `'b`
12 --> $DIR/undeclared-lifetime-used-in-debug-macro-issue-70152.rs:13:13
13 |
14 LL | fn foo(&'b self) {}
15 | ^^ undeclared lifetime
16 |
17 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
18 help: consider introducing lifetime `'b` here
19 |
20 LL | impl<'b> T for Test {
21 | ^^^^
22 help: consider introducing lifetime `'b` here
23 |
24 LL | fn foo<'b>(&'b self) {}
25 | ^^^^
26
27 error[E0261]: use of undeclared lifetime name `'b`
28 --> $DIR/undeclared-lifetime-used-in-debug-macro-issue-70152.rs:3:9
29 |
30 LL | #[derive(Eq, PartialEq)]
31 | -- lifetime `'b` is missing in item created through this procedural macro
32 LL | struct Test {
33 LL | a: &'b str,
34 | ^^ undeclared lifetime
35 |
36 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
37
38 error: aborting due to 3 previous errors
39
40 For more information about this error, try `rustc --explain E0261`.