2022-09-21 13:05:20 +02: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
|
|
|
|
|
2022-11-15 12:06:20 +01:00
|
|
|
note: erroneous constant used
|
2022-09-21 13:05:20 +02:00
|
|
|
--> $DIR/assoc_const_2.rs:27:13
|
2018-11-21 10:54:46 +01:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | let y = <String as Bar<String>>::F;
|
2022-11-15 12:06:20 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-11-21 10:54:46 +01:00
|
|
|
|
2022-11-15 12:06:20 +01:00
|
|
|
note: erroneous constant used
|
|
|
|
--> $DIR/assoc_const_2.rs:27:13
|
|
|
|
|
|
|
|
|
LL | let y = <String as Bar<String>>::F;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
note: erroneous constant used
|
|
|
|
--> $DIR/assoc_const_2.rs:27:13
|
|
|
|
|
|
|
|
|
LL | let y = <String as Bar<String>>::F;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
2018-11-21 10:54:46 +01:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0080`.
|