mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-13 09:05:00 +00:00
9 lines
184 B
Rust
9 lines
184 B
Rust
//@ run-pass
|
|
// Check that we allow a cast to `_` so long as the target type can be
|
|
// inferred elsewhere.
|
|
|
|
pub fn main() {
|
|
let i: *const i32 = 0 as _;
|
|
assert!(i.is_null());
|
|
}
|