You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0308]: mismatched types
--> src/lib.rs:1021:50
|
1021 | assert!((0 as $T).is_multiple_of(&(0 as $T)));
| -------------- ^^^^^^^^^^ expected `u8`, found `&u8`
| |
| arguments to this method are incorrect
...
1052 | impl_integer_for_usize!(u8, test_integer_u8);
| -------------------------------------------- in this macro invocation
|
note: method defined here
--> /builddir/build/BUILD/rust-1.87.0-build/rustc-1.87.0-src/library/core/src/num/mod.rs:436:5
= note: this error originates in the macro `impl_integer_for_usize` which comes from the expansion of the macro `uint_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider using clone here
|
1021 | assert!((0 as $T).is_multiple_of(&(0 as $T).clone()));
| ++++++++
Activity
cuviper commentedon Jun 2, 2025
Yes -- #69 fixed the tests, but I haven't bothered publishing that yet since it doesn't affect "normal" users. 😉