mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
12 lines
175 B
Rust
12 lines
175 B
Rust
//@ run-pass
|
|
//@ proc-macro: gen-lifetime-token.rs
|
|
|
|
extern crate gen_lifetime_token as bar;
|
|
|
|
bar::bar!();
|
|
|
|
fn main() {
|
|
let x: &'static i32 = FOO;
|
|
assert_eq!(*x, 1);
|
|
}
|