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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
132 B
Rust
Raw Normal View History

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