rust/tests/ui/const-generics/adt_const_params/index-oob-ice-83993.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
761 B
Plaintext
Raw Normal View History

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
--> $DIR/index-oob-ice-83993.rs:18:17
2024-04-19 11:27:25 -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
error: aborting due to 2 previous errors
2024-04-19 11:27:25 -05:00