2023-05-05 21:42:51 +01:00
|
|
|
error: generic parameters may not be used in const operations
|
2022-09-15 11:29:12 +10:00
|
|
|
--> $DIR/const-argument-non-static-lifetime.rs:14:17
|
2022-05-01 16:48:58 +01:00
|
|
|
|
|
|
|
|
LL | let _: &'a ();
|
2023-05-05 21:42:51 +01:00
|
|
|
| ^^ cannot perform const operation using `'a`
|
2022-05-01 16:48:58 +01:00
|
|
|
|
|
2023-05-05 21:42:51 +01:00
|
|
|
= note: lifetime parameters may not be used in const expressions
|
|
|
|
= help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
|
2022-05-01 16:48:58 +01:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|