]> git.lizzy.rs Git - rust.git/blob - tests/ui/cast/casts-issue-46365.rs
Rollup merge of #106783 - WaffleLapkin:break-my-ident, r=wesleywiser
[rust.git] / tests / ui / cast / casts-issue-46365.rs
1 struct Lorem {
2     ipsum: Ipsum //~ ERROR cannot find type `Ipsum`
3 }
4
5 fn main() {
6     // Testing `as` casts, so deliberately not using `ptr::null`.
7     let _foo: *mut Lorem = 0 as *mut _; // no error here
8 }