rust/tests/ui/error-codes/E0605.rs
2023-01-11 09:32:08 +00:00

8 lines
132 B
Rust

fn main() {
let x = 0u8;
x as Vec<u8>; //~ ERROR E0605
let v = std::ptr::null::<u8>();
v as &u8; //~ ERROR E0605
}