rust/tests/ui/consts/issue-69310-array-size-lit-wrong-ty.stderr
2023-01-11 09:32:08 +00:00

16 lines
489 B
Plaintext

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