mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
433da1fc04
They pass fine.
10 lines
171 B
Rust
10 lines
171 B
Rust
extern crate dylib;
|
|
extern crate both;
|
|
|
|
use std::mem;
|
|
|
|
fn main() {
|
|
assert_eq!(unsafe { mem::transmute::<&isize, usize>(&both::foo) },
|
|
dylib::addr());
|
|
}
|