2024-02-16 20:02:50 +00:00
|
|
|
//@ check-pass
|
2024-11-24 17:37:25 -08:00
|
|
|
//@ proc-macro: test-macros.rs
|
2021-03-11 19:39:26 +08:00
|
|
|
#![feature(stmt_expr_attributes, proc_macro_hygiene)]
|
|
|
|
|
|
|
|
|
|
extern crate test_macros;
|
|
|
|
|
|
|
|
|
|
use test_macros::identity_attr;
|
|
|
|
|
|
|
|
|
|
#[identity_attr]
|
|
|
|
|
fn main() {
|
|
|
|
|
let _x;
|
|
|
|
|
let y = ();
|
2024-06-06 20:39:54 +00:00
|
|
|
#[identity_attr]
|
|
|
|
|
_x = y;
|
2021-03-11 19:39:26 +08:00
|
|
|
}
|