rust/tests/ui/const-generics/generic_const_exprs/issue-74713.stderr
2023-05-05 21:42:54 +01:00

22 lines
652 B
Plaintext

error: generic parameters may not be used in const operations
--> $DIR/issue-74713.rs:4:17
|
LL | let _: &'a ();
| ^^ cannot perform const operation using `'a`
|
= note: lifetime parameters may not be used in const expressions
= help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
error[E0308]: mismatched types
--> $DIR/issue-74713.rs:3:10
|
LL | [(); {
| __________^
LL | | let _: &'a ();
LL | | }]:
| |_____^ expected `usize`, found `()`
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0308`.