fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
489 B15 linesraw
1error[E0308]: mismatched types
2  --> $DIR/issue-69310-array-size-lit-wrong-ty.rs:10:15
3   |
4LL | const A: [(); 0.1] = [()];
5   |               ^^^ expected `usize`, found floating-point number
6
7error[E0308]: mismatched types
8  --> $DIR/issue-69310-array-size-lit-wrong-ty.rs:11:15
9   |
10LL | const B: [(); b"a"] = [()];
11   |               ^^^^ expected `usize`, found `&[u8; 1]`
12
13error: aborting due to 2 previous errors
14
15For more information about this error, try `rustc --explain E0308`.