summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/miri_unleashed/assoc_const_2.stderr
blob: 2bf753c2ba3df46c8f19db44cf18c81fe1c322fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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

error[E0080]: erroneous constant used
  --> $DIR/assoc_const_2.rs:27:13
   |
LL |     let y = <String as Bar<String>>::F;
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^ referenced constant has errors

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0080`.