]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/too_generic_eval_ice.stderr
Rollup merge of #72279 - RalfJung:raw-ref-macros, r=nikomatsakis
[rust.git] / src / test / ui / consts / too_generic_eval_ice.stderr
1 error: constant expression depends on a generic parameter
2   --> $DIR/too_generic_eval_ice.rs:7:13
3    |
4 LL |         [5; Self::HOST_SIZE] == [6; 0]
5    |             ^^^^^^^^^^^^^^^
6    |
7    = note: this may fail depending on what value the parameter takes
8
9 error[E0369]: binary operation `==` cannot be applied to type `[{integer}; _]`
10   --> $DIR/too_generic_eval_ice.rs:7:30
11    |
12 LL |         [5; Self::HOST_SIZE] == [6; 0]
13    |         -------------------- ^^ ------ [{integer}; 0]
14    |         |
15    |         [{integer}; _]
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0369`.