mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 12:44:40 +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());
|
|
}
|