summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0262.stderr
blob: ad90b7171266eb29695b0fc44f360baef5cb7d13 (plain)
1
2
3
4
5
6
7
8
9
error[E0262]: invalid lifetime parameter name: `'static`
  --> $DIR/E0262.rs:1:8
   |
LL | fn foo<'static>(x: &'static str) { }
   |        ^^^^^^^ 'static is a reserved lifetime name

error: aborting due to previous error

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