about summary refs log tree commit diff
path: root/tests/ui/error-codes/E0261.stderr
blob: 9ca26dc8459d70ec18ff62a7c3e2c3736c158135 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
error[E0261]: use of undeclared lifetime name `'a`
  --> $DIR/E0261.rs:1:12
   |
LL | fn foo(x: &'a str) { }
   |            ^^ undeclared lifetime
   |
help: consider introducing lifetime `'a` here
   |
LL | fn foo<'a>(x: &'a str) { }
   |       ++++

error[E0261]: use of undeclared lifetime name `'a`
  --> $DIR/E0261.rs:5:9
   |
LL |     x: &'a str,
   |         ^^ undeclared lifetime
   |
help: consider introducing lifetime `'a` here
   |
LL | struct Foo<'a> {
   |           ++++

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0261`.