Skip to content

Commit 88f2a70

Browse files
author
hyd-dev
committed
Add regression test for #81555
1 parent 04fce73 commit 88f2a70

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/test/ui/proc-macro/issue-81555.rs

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// check-pass
2+
// aux-build:test-macros.rs
3+
#![feature(stmt_expr_attributes, proc_macro_hygiene)]
4+
5+
extern crate test_macros;
6+
7+
use test_macros::identity_attr;
8+
9+
#[identity_attr]
10+
fn main() {
11+
let _x;
12+
let y = ();
13+
#[identity_attr]
14+
_x = y;
15+
}

0 commit comments

Comments
 (0)