]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0605.rs
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[rust.git] / src / test / ui / error-codes / E0605.rs
1 fn main() {
2     let x = 0u8;
3     x as Vec<u8>; //~ ERROR E0605
4
5     let v = std::ptr::null::<u8>();
6     v as &u8; //~ ERROR E0605
7 }