about summary refs log tree commit diff
path: root/tests/ui/lifetimes/static-typos.stderr
blob: a817fa89c7e54abbd4dd37c0ef37a0dc175bd0b6 (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
26
error[E0261]: use of undeclared lifetime name `'stati`
  --> $DIR/static-typos.rs:1:13
   |
LL | fn stati<T: 'stati>() {}
   |             ^^^^^^ undeclared lifetime
   |
help: you may have misspelled the `'static` lifetime
   |
LL | fn stati<T: 'static>() {}
   |                   +

error[E0261]: use of undeclared lifetime name `'statoc`
  --> $DIR/static-typos.rs:4:14
   |
LL | fn statoc<T: 'statoc>() {}
   |              ^^^^^^^ undeclared lifetime
   |
help: you may have misspelled the `'static` lifetime
   |
LL - fn statoc<T: 'statoc>() {}
LL + fn statoc<T: 'static>() {}
   |

error: aborting due to 2 previous errors

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