summaryrefslogtreecommitdiffstats
path: root/src/test/ui/proc-macro/issue-81555.rs
blob: 693f1f7dc39ff23c6e5ac8a7825ed7eda75fba28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;
}