fork/rust

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

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

master
538 B16 linesraw
1error[E0053]: method `bit` has an incompatible generic parameter for trait `Bits`
2  --> $DIR/issue-86820.rs:16:12
3   |
4LL | trait Bits {
5   |       ----
6LL |     fn bit<const I: u8>(self) -> bool;
7   |            ----------- expected const parameter of type `u8`
8...
9LL | impl Bits for u8 {
10   | ----------------
11LL |     fn bit<const I: usize>(self) -> bool {
12   |            ^^^^^^^^^^^^^^ found const parameter of type `usize`
13
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0053`.