fork/rust

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

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

master
658 B15 linesraw
1error[E0080]: evaluation of `<u32 as ZeroSized>::I_AM_ZERO_SIZED` failed
2  --> $DIR/assoc_const_generic_impl.rs:9:34
3   |
4LL |     const I_AM_ZERO_SIZED: ()  = [()][std::mem::size_of::<Self>()];
5   |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ index out of bounds: the length is 1 but the index is 4
6
7note: the above error was encountered while instantiating `fn <u32 as ZeroSized>::requires_zero_size`
8  --> $DIR/assoc_const_generic_impl.rs:18:5
9   |
10LL |     42_u32.requires_zero_size();
11   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0080`.