2023-05-05 15:42:51 -05:00
|
|
|
error: generic parameters may not be used in const operations
|
2022-07-12 00:21:09 -05:00
|
|
|
--> $DIR/issue-74713.rs:4:17
|
|
|
|
|
|
|
|
|
LL | let _: &'a ();
|
2023-05-05 15:42:51 -05:00
|
|
|
| ^^ cannot perform const operation using `'a`
|
2022-07-12 00:21:09 -05:00
|
|
|
|
|
2023-05-05 15:42:51 -05:00
|
|
|
= note: lifetime parameters may not be used in const expressions
|
2023-11-30 13:59:51 -06:00
|
|
|
= help: add `#![feature(generic_const_exprs)]` to allow generic const expressions
|
2022-07-12 00:21:09 -05:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2023-05-05 15:42:51 -05:00
|
|
|
For more information about this error, try `rustc --explain E0308`.
|