summaryrefslogtreecommitdiffstats
path: root/src/test/ui/cast/casts-issue-46365.rs
blob: 50aa1a856a7161fc576bdce44120f92cf9a7a50c (plain)
1
2
3
4
5
6
7
8
struct Lorem {
    ipsum: Ipsum //~ ERROR cannot find type `Ipsum`
}

fn main() {
    // Testing `as` casts, so deliberately not using `ptr::null`.
    let _foo: *mut Lorem = 0 as *mut _; // no error here
}