mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
3079bd96b9
With the exception of `tests/run-make/translation/test.rs`, which has a syntax error. The expected output in `rustdoc-error-lines/rmake.rs`'s required slight tweaking. The two `reproducible-build.rs` files need `// ignore-tidy-linelength` because rustfmt produces lines longer than 100 chars, which tidy doesn't like, yuk.
16 lines
268 B
Rust
16 lines
268 B
Rust
#[cfg(before)]
|
|
extern crate a;
|
|
#[cfg(after)]
|
|
extern crate a;
|
|
extern crate b;
|
|
extern crate c;
|
|
|
|
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()));
|
|
}
|