Add regression test for https://github.com/rust-lang/rust/issues/81555
This commit is contained in:
parent
04fce73196
commit
88f2a702c7
15
src/test/ui/proc-macro/issue-81555.rs
Normal file
15
src/test/ui/proc-macro/issue-81555.rs
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user