fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
676 B21 linesraw
1error[E0080]: evaluation of `<std::string::String as Bar<std::string::String>>::F` failed
2  --> $DIR/assoc_const_2.rs:10:20
3   |
4LL |     const F: u32 = 100 / U::X;
5   |                    ^^^^^^^^^^ attempt to divide `100_u32` by zero
6
7note: erroneous constant encountered
8  --> $DIR/assoc_const_2.rs:27:13
9   |
10LL |     let y = <String as Bar<String>>::F;
11   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^
12
13note: erroneous constant encountered
14  --> $DIR/assoc_const_2.rs:27:13
15   |
16LL |     let y = <String as Bar<String>>::F;
17   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^
18
19error: aborting due to previous error
20
21For more information about this error, try `rustc --explain E0080`.