mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-24 22:44:26 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
24 lines
762 B
Plaintext
24 lines
762 B
Plaintext
error[E0080]: evaluation of `<std::string::String as Bar<std::string::String>>::F` failed
|
|
--> $DIR/assoc_const_2.rs:10:20
|
|
|
|
|
LL | const F: u32 = 100 / U::X;
|
|
| ^^^^^^^^^^ attempt to divide `100_u32` by zero
|
|
|
|
note: erroneous constant encountered
|
|
--> $DIR/assoc_const_2.rs:27:13
|
|
|
|
|
LL | let y = <String as Bar<String>>::F;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
note: erroneous constant encountered
|
|
--> $DIR/assoc_const_2.rs:27:13
|
|
|
|
|
LL | let y = <String as Bar<String>>::F;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0080`.
|