mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 03:03:40 +00:00
7 lines
186 B
Rust
7 lines
186 B
Rust
fn main() {
|
|
let _ = &&[0] as &[_];
|
|
//~^ ERROR non-primitive cast: `&&[i32; 1]` as `&[_]`
|
|
let _ = 7u32 as Option<_>;
|
|
//~^ ERROR non-primitive cast: `u32` as `Option<_>`
|
|
}
|