]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0261.stderr
Merge commit '2f6439ae6a6803d030cceb3ee14c9150e91b328b' into clippyup
[rust.git] / src / test / ui / error-codes / E0261.stderr
1 error[E0261]: use of undeclared lifetime name `'a`
2   --> $DIR/E0261.rs:1:12
3    |
4 LL | fn foo(x: &'a str) { }
5    |       -    ^^ undeclared lifetime
6    |       |
7    |       help: consider introducing lifetime `'a` here: `<'a>`
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 `'a`
12   --> $DIR/E0261.rs:5:9
13    |
14 LL | struct Foo {
15    |           - help: consider introducing lifetime `'a` here: `<'a>`
16 LL |     x: &'a str,
17    |         ^^ undeclared lifetime
18    |
19    = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
20
21 error: aborting due to 2 previous errors
22
23 For more information about this error, try `rustc --explain E0261`.