This commit is contained in:
hyd-dev 2021-03-11 19:39:26 +08:00
parent 04fce73196
commit 88f2a702c7
No known key found for this signature in database
GPG Key ID: 74FA7FD5B8DA14B8

View File

@ -0,0 +1,15 @@
// check-pass
// aux-build: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;
}