mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-12 16:45:37 +00:00
433da1fc04
They pass fine.
12 lines
264 B
Rust
12 lines
264 B
Rust
#[cfg(before)] extern crate a;
|
|
extern crate b;
|
|
extern crate c;
|
|
#[cfg(after)] extern crate a;
|
|
|
|
fn t(a: &'static usize) -> usize { a as *const _ as usize }
|
|
|
|
fn main() {
|
|
assert_eq!(t(a::token()), t(b::a_token()));
|
|
assert!(t(a::token()) != t(c::a_token()));
|
|
}
|