rust/tests/ui/consts/miri_unleashed/assoc_const_2.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
676 B
Plaintext
Raw Normal View History

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
note: erroneous constant encountered
2022-09-21 11:05:20 +00:00
--> $DIR/assoc_const_2.rs:27:13
|
2019-03-09 12:03:44 +00:00
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;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0080`.