diff options
| author | hyd-dev <yd-huang@outlook.com> | 2021-03-11 19:39:26 +0800 |
|---|---|---|
| committer | hyd-dev <yd-huang@outlook.com> | 2021-03-11 19:39:26 +0800 |
| commit | 88f2a702c7c46274331f5be08f4dde692dbf1913 (patch) | |
| tree | a57779afdcdef4f9d7628b8173c01887cd340df7 | |
| parent | 04fce73196638cbb203e2b0dd2a16230ff6e265b (diff) | |
| download | rust-88f2a702c7c46274331f5be08f4dde692dbf1913.tar.gz rust-88f2a702c7c46274331f5be08f4dde692dbf1913.zip | |
Add regression test for https://github.com/rust-lang/rust/issues/81555
| -rw-r--r-- | src/test/ui/proc-macro/issue-81555.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/proc-macro/issue-81555.rs b/src/test/ui/proc-macro/issue-81555.rs new file mode 100644 index 00000000000..693f1f7dc39 --- /dev/null +++ b/src/test/ui/proc-macro/issue-81555.rs @@ -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; +} |
