mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-27 18:56:24 +00:00
6 lines
155 B
Rust
6 lines
155 B
Rust
fn main() {
|
|
let a: [u8; 3] = [1,2,3];
|
|
let b = &a;
|
|
let c = b as *const [u32; 3]; //~ ERROR casting `&[u8; 3]` as `*const [u32; 3]` is invalid
|
|
}
|