2023-05-05 15:42:51 -05:00
|
|
|
error: generic parameters may not be used in const operations
|
2020-11-17 04:44:21 -06:00
|
|
|
--> $DIR/forbid-non-static-lifetimes.rs:7:22
|
2020-09-15 08:38:41 -05:00
|
|
|
|
|
|
|
|
LL | test::<{ let _: &'a (); 3 },>();
|
2023-05-05 15:42:51 -05:00
|
|
|
| ^^ cannot perform const operation using `'a`
|
2020-09-15 08:38:41 -05:00
|
|
|
|
|
2023-05-05 15:42:51 -05:00
|
|
|
= note: lifetime parameters may not be used in const expressions
|
|
|
|
= help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
|
2020-09-15 08:38:41 -05:00
|
|
|
|
2023-05-05 15:42:51 -05:00
|
|
|
error: generic parameters may not be used in const operations
|
2020-11-17 04:44:21 -06:00
|
|
|
--> $DIR/forbid-non-static-lifetimes.rs:21:16
|
2020-09-15 08:38:41 -05:00
|
|
|
|
|
|
|
|
LL | [(); (|_: &'a u8| (), 0).1];
|
2023-05-05 15:42:51 -05:00
|
|
|
| ^^ cannot perform const operation using `'a`
|
2020-09-15 08:38:41 -05:00
|
|
|
|
|
2023-05-05 15:42:51 -05:00
|
|
|
= note: lifetime parameters may not be used in const expressions
|
|
|
|
= help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
|
2020-09-15 08:38:41 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|