]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/generic_const_exprs/issue-72819-generic-in-const-eval.full.stderr
Move generic error message to separate branches
[rust.git] / src / test / ui / const-generics / generic_const_exprs / issue-72819-generic-in-const-eval.full.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-72819-generic-in-const-eval.rs:20:12
3    |
4 LL |     let x: Arr<{usize::MAX}> = Arr {};
5    |            ^^^^^^^^^^^^^^^^^ expected `false`, found `true`
6    |
7    = note: expected type `false`
8               found type `true`
9
10 error[E0308]: mismatched types
11   --> $DIR/issue-72819-generic-in-const-eval.rs:20:32
12    |
13 LL |     let x: Arr<{usize::MAX}> = Arr {};
14    |                                ^^^ expected `false`, found `true`
15    |
16    = note: expected type `false`
17               found type `true`
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0308`.