]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/too_generic_eval_ice.stderr
Do not suggest `let_else` if no bindings would be introduced
[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: constant expression depends on a generic parameter
10   --> $DIR/too_generic_eval_ice.rs:7:30
11    |
12 LL |         [5; Self::HOST_SIZE] == [6; 0]
13    |                              ^^
14    |
15    = note: this may fail depending on what value the parameter takes
16
17 error[E0277]: can't compare `[{integer}; _]` with `[{integer}; 0]`
18   --> $DIR/too_generic_eval_ice.rs:7:30
19    |
20 LL |         [5; Self::HOST_SIZE] == [6; 0]
21    |                              ^^ no implementation for `[{integer}; _] == [{integer}; 0]`
22    |
23    = help: the trait `PartialEq<[{integer}; 0]>` is not implemented for `[{integer}; _]`
24
25 error: aborting due to 3 previous errors
26
27 For more information about this error, try `rustc --explain E0277`.