Fix returning (u128, u128)
This commit is contained in:
parent
63646b1956
commit
49b21f2730
2 changed files with 20 additions and 4 deletions
|
@ -117,6 +117,14 @@ impl<T: ?Sized, U: ?Sized> CoerceUnsized<Unique<U>> for Unique<T> where T: Unsiz
|
|||
fn take_f32(_f: f32) {}
|
||||
fn take_unique(_u: Unique<()>) {}
|
||||
|
||||
fn return_u128_pair() -> (u128, u128) {
|
||||
(0, 0)
|
||||
}
|
||||
|
||||
fn call_return_u128_pair() {
|
||||
return_u128_pair();
|
||||
}
|
||||
|
||||
fn main() {
|
||||
take_unique(Unique {
|
||||
pointer: 0 as *const (),
|
||||
|
@ -124,6 +132,8 @@ fn main() {
|
|||
});
|
||||
take_f32(0.1);
|
||||
|
||||
call_return_u128_pair();
|
||||
|
||||
//return;
|
||||
|
||||
unsafe {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue