]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0262.stderr
Suggest `if let`/`let_else` for refutable pat in `let`
[rust.git] / src / test / ui / error-codes / E0262.stderr
1 error[E0262]: invalid lifetime parameter name: `'static`
2   --> $DIR/E0262.rs:1:8
3    |
4 LL | fn foo<'static>(x: &'static str) { }
5    |        ^^^^^^^ 'static is a reserved lifetime name
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0262`.