blob: da1d82e896ae51a341f43ea6f6024ff2c9b67b7b [file] [log] [blame]
// run-pass
// Tests that the tail expr in null() has its type
// unified with the type *T, and so the type variable
// in that type gets resolved.
// pretty-expanded FIXME #23616
use std::mem;
fn null<T>() -> *const T {
unsafe {
mem::transmute(0_usize)
}
}
pub fn main() { null::<isize>(); }