mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
16 lines
489 B
Plaintext
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`.
|