2022-09-21 11:05:20 +00:00
|
|
|
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
|
|
|
|
|
2023-09-11 21:09:11 +00:00
|
|
|
note: erroneous constant encountered
|
2022-09-21 11:05:20 +00:00
|
|
|
--> $DIR/assoc_const_2.rs:27:13
|
2018-11-21 09:54:46 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let y = <String as Bar<String>>::F;
|
2022-11-15 11:06:20 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-11-21 09:54:46 +00:00
|
|
|
|
2023-09-11 21:09:11 +00:00
|
|
|
note: erroneous constant encountered
|
2022-11-15 11:06:20 +00:00
|
|
|
--> $DIR/assoc_const_2.rs:27:13
|
|
|
|
|
|
|
|
|
LL | let y = <String as Bar<String>>::F;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2023-10-04 18:34:50 +00:00
|
|
|
|
|
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
2022-11-15 11:06:20 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2018-11-21 09:54:46 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0080`.
|