rust/tests/ui/const-generics/issues/issue-86820.stderr
Nilstrieb 41e8d152dc Show number in error message even for one error
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-24 19:15:52 +01:00

17 lines
540 B
Plaintext

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 1 previous error
For more information about this error, try `rustc --explain E0053`.