2024-02-16 20:02:50 +00:00
|
|
|
//@ run-pass
|
2018-01-02 20:44:54 +00:00
|
|
|
pub fn main() {
|
|
|
|
assert_eq!(!0usize as *const (), foo(0, 1));
|
|
|
|
assert_eq!(!0usize as *const (), (0i8 - 1) as *const ());
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn foo(a: i8, b: i8) -> *const () {
|
|
|
|
(a - b) as *const ()
|
|
|
|
}
|