summaryrefslogtreecommitdiffstats
path: root/src/test/ui/const-generics/issues/issue-86820.stderr
blob: 3a9cd957f35e7a65c3e1959d7a5ce878fa59ac09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error[E0053]: method `bit` has an incompatible generic parameter for trait `Bits`
  --> $DIR/issue-86820.rs:16:12
   |
LL | trait Bits {
   |       ----
LL |     fn bit<const I: u8>(self) -> bool;
   |            ----------- expected const parameter of type `u8`
...
LL | impl Bits for u8 {
   | ----------------
LL |     fn bit<const I: usize>(self) -> bool {
   |            ^^^^^^^^^^^^^^ found const parameter of type `usize`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0053`.