summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0605.rs
blob: cfbf1aa2bd76530593dfde6fedccd08699df52e5 (plain)
1
2
3
4
5
6
7
fn main() {
    let x = 0u8;
    x as Vec<u8>; //~ ERROR E0605

    let v = std::ptr::null::<u8>();
    v as &u8; //~ ERROR E0605
}