2024-04-19 11:27:25 -05:00
|
|
|
error: generic parameters may not be used in const operations
|
|
|
|
--> $DIR/index-oob-ice-83993.rs:8:17
|
|
|
|
|
|
|
|
|
LL | let x: &'b ();
|
|
|
|
| ^^ cannot perform const operation using `'b`
|
|
|
|
|
|
|
|
|
= note: lifetime parameters may not be used in const expressions
|
|
|
|
= help: add `#![feature(generic_const_exprs)]` to allow generic const expressions
|
|
|
|
|
|
|
|
error: generic parameters may not be used in const operations
|
2024-07-14 07:38:51 -05:00
|
|
|
--> $DIR/index-oob-ice-83993.rs:18:17
|
2024-04-19 11:27:25 -05:00
|
|
|
|
|
2024-07-14 07:38:51 -05:00
|
|
|
LL | let _: &'b ();
|
|
|
|
| ^^ cannot perform const operation using `'b`
|
2024-04-19 11:27:25 -05:00
|
|
|
|
|
|
|
|
= note: lifetime parameters may not be used in const expressions
|
|
|
|
= help: add `#![feature(generic_const_exprs)]` to allow generic const expressions
|
|
|
|
|
2024-07-14 07:38:51 -05:00
|
|
|
error: aborting due to 2 previous errors
|
2024-04-19 11:27:25 -05:00
|
|
|
|