fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
564 B19 linesraw
1error[E0261]: use of undeclared lifetime name `'a`
2  --> $DIR/E0261.rs:1:12
3   |
4LL | fn foo(x: &'a str) { }
5   |       -    ^^ undeclared lifetime
6   |       |
7   |       help: consider introducing lifetime `'a` here: `<'a>`
8
9error[E0261]: use of undeclared lifetime name `'a`
10  --> $DIR/E0261.rs:5:9
11   |
12LL | struct Foo {
13   |           - help: consider introducing lifetime `'a` here: `<'a>`
14LL |     x: &'a str,
15   |         ^^ undeclared lifetime
16
17error: aborting due to 2 previous errors
18
19For more information about this error, try `rustc --explain E0261`.