2022-05-06 05:37:22 -05:00
|
|
|
error[E0053]: method `bit` has an incompatible generic parameter for trait `Bits`
|
2022-05-05 11:44:54 -05:00
|
|
|
--> $DIR/issue-86820.rs:16:12
|
2021-07-03 10:56:09 -05:00
|
|
|
|
|
2022-05-05 11:44:54 -05:00
|
|
|
LL | trait Bits {
|
|
|
|
| ----
|
|
|
|
LL | fn bit<const I: u8>(self) -> bool;
|
2022-05-06 05:37:22 -05:00
|
|
|
| ----------- expected const parameter of type `u8`
|
2022-05-05 11:44:54 -05:00
|
|
|
...
|
|
|
|
LL | impl Bits for u8 {
|
|
|
|
| ----------------
|
|
|
|
LL | fn bit<const I: usize>(self) -> bool {
|
2022-05-06 05:37:22 -05:00
|
|
|
| ^^^^^^^^^^^^^^ found const parameter of type `usize`
|
2021-07-03 10:56:09 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0053`.
|