2023-03-18 21:20:15 -05:00
|
|
|
error: the constant `N` is not of type `usize`
|
|
|
|
--> $DIR/bad-const-wf-doesnt-specialize.rs:8:29
|
2023-03-09 14:49:05 -06:00
|
|
|
|
|
|
|
|
LL | impl<const N: i32> Copy for S<N> {}
|
2023-03-09 16:08:48 -06:00
|
|
|
| ^^^^ expected `usize`, found `i32`
|
2023-03-18 21:20:15 -05:00
|
|
|
|
|
|
|
|
note: required by a bound in `S`
|
|
|
|
--> $DIR/bad-const-wf-doesnt-specialize.rs:6:10
|
|
|
|
|
|
|
|
|
LL | struct S<const L: usize>;
|
|
|
|
| ^^^^^^^^^^^^^^ required by this bound in `S`
|
2023-03-09 14:49:05 -06:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|