]> git.proxmox.com Git - rustc.git/blob - src/test/ui/consts/const-tup-index-span.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / consts / const-tup-index-span.stderr
1 error[E0308]: mismatched types
2 --> $DIR/const-tup-index-span.rs:3:23
3 |
4 LL | const TUP: (usize,) = 5usize << 64;
5 | ^^^^^^^^^^^^ expected tuple, found `usize`
6 |
7 = note: expected tuple `(usize,)`
8 found type `usize`
9 help: use a trailing comma to create a tuple with one element
10 |
11 LL | const TUP: (usize,) = (5usize << 64,);
12 | + ++
13
14 error[E0080]: evaluation of constant value failed
15 --> $DIR/const-tup-index-span.rs:6:18
16 |
17 LL | const ARR: [i32; TUP.0] = [];
18 | ^^^ referenced constant has errors
19
20 error: aborting due to 2 previous errors
21
22 Some errors have detailed explanations: E0080, E0308.
23 For more information about an error, try `rustc --explain E0080`.