os-rust/tests/ui/error-codes/E0605.rs

8 lines
132 B
Rust
Raw Normal View History

2017-06-07 22:24:15 +02:00
fn main() {
let x = 0u8;
x as Vec<u8>; //~ ERROR E0605
let v = std::ptr::null::<u8>();
2017-06-07 22:24:15 +02:00
v as &u8; //~ ERROR E0605
}