We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4322a78 commit e5dd503Copy full SHA for e5dd503
src/test/ui/cast/casts-issue-46365.rs
@@ -3,5 +3,6 @@ struct Lorem {
3
}
4
5
fn main() {
6
- let _foo: *mut Lorem = core::ptr::NonNull::dangling().as_ptr(); // no error here
+ // Testing `as` casts, so deliberately not using `ptr::null`.
7
+ let _foo: *mut Lorem = 0 as *mut _; // no error here
8
0 commit comments