rust/tests/ui/const-generics/generic_const_exprs/abstract-consts-as-cast-5.stderr

11 lines
315 B
Plaintext
Raw Normal View History

2021-09-07 07:24:04 -05:00
error: unconstrained generic constant
--> $DIR/abstract-consts-as-cast-5.rs:5:11
|
LL | bar::<{ N as usize as usize }>();
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= help: try adding a `where` bound using this expression: `where [(); { N as usize as usize }]:`
error: aborting due to previous error