rust/tests/ui/const-generics/generic_const_exprs/issue-74713.stderr

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

22 lines
652 B
Plaintext
Raw Normal View History

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
= 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`.