]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-32655.rs
Rollup merge of #93112 - pietroalbini:pa-cve-2022-21658-nightly, r=pietroalbini
[rust.git] / src / test / ui / issues / issue-32655.rs
1 macro_rules! foo (
2     () => (
3         #[derive_Clone] //~ ERROR cannot find attribute `derive_Clone` in this scope
4         struct T;
5     );
6 );
7
8 macro_rules! bar (
9     ($e:item) => ($e)
10 );
11
12 foo!();
13
14 bar!(
15     #[derive_Clone] //~ ERROR cannot find attribute `derive_Clone` in this scope
16     struct S;
17 );
18
19 fn main() {}