2022-06-25 17:42:23 +00:00
|
|
|
error[E0284]: type annotations needed
|
2023-10-05 03:57:10 +00:00
|
|
|
--> $DIR/issue-71584.rs:5:15
|
2020-05-06 22:26:03 +00:00
|
|
|
|
|
|
|
|
LL | d = d % n.into();
|
2022-06-25 17:42:23 +00:00
|
|
|
| - ^^^^
|
|
|
|
| |
|
|
|
|
| type must be known at this point
|
|
|
|
|
|
|
|
|
= note: cannot satisfy `<u64 as Rem<_>>::Output == u64`
|
|
|
|
help: try using a fully qualified path to specify the expected types
|
|
|
|
|
|
|
|
|
LL | d = d % <u32 as Into<T>>::into(n);
|
|
|
|
| +++++++++++++++++++++++ ~
|
2020-05-06 22:26:03 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2020-05-06 22:26:03 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0284`.
|