fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
434 B14 linesraw
1error: the constant `N` is not of type `usize`
2  --> $DIR/bad-const-wf-doesnt-specialize.rs:8:29
3   |
4LL | impl<const N: i32> Copy for S<N> {}
5   |                             ^^^^ expected `usize`, found `i32`
6   |
7note: required by a bound in `S`
8  --> $DIR/bad-const-wf-doesnt-specialize.rs:6:10
9   |
10LL | struct S<const L: usize>;
11   |          ^^^^^^^^^^^^^^ required by this bound in `S`
12
13error: aborting due to previous error
14