mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 13:49:13 +00:00
16 lines
253 B
Rust
16 lines
253 B
Rust
//@ check-pass
|
|
//@ proc-macro: test-macros.rs
|
|
#![feature(stmt_expr_attributes, proc_macro_hygiene)]
|
|
|
|
extern crate test_macros;
|
|
|
|
use test_macros::identity_attr;
|
|
|
|
#[identity_attr]
|
|
fn main() {
|
|
let _x;
|
|
let y = ();
|
|
#[identity_attr]
|
|
_x = y;
|
|
}
|