mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-05 14:37:37 +00:00
10 lines
315 B
Rust
10 lines
315 B
Rust
const ONE: [u16] = [1];
|
|
//~^ ERROR the size for values of type `[u16]` cannot be known at compilation time
|
|
//~| ERROR the size for values of type `[u16]` cannot be known at compilation time
|
|
//~| ERROR mismatched types
|
|
|
|
const TWO: &'static u16 = &ONE[0];
|
|
//~^ ERROR cannot move a value of type `[u16]`
|
|
|
|
fn main() {}
|