]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0261.stderr
Suggest `if let`/`let_else` for refutable pat in `let`
[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 error[E0261]: use of undeclared lifetime name `'a`
10   --> $DIR/E0261.rs:5:9
11    |
12 LL | struct Foo {
13    |           - help: consider introducing lifetime `'a` here: `<'a>`
14 LL |     x: &'a str,
15    |         ^^ undeclared lifetime
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0261`.