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