]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/issue-42708.rs
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / proc-macro / issue-42708.rs
1 // run-pass
2 // aux-build:issue-42708.rs
3
4 #![feature(decl_macro)]
5 #![allow(unused)]
6
7 extern crate issue_42708;
8
9 macro m() {
10     #[derive(issue_42708::Test)]
11     struct S { x: () }
12
13     #[issue_42708::attr_test]
14     struct S2 { x: () }
15
16     #[derive(Clone)]
17     struct S3 { x: () }
18
19     fn g(s: S, s2: S2, s3: S3) {
20         (s.x, s2.x, s3.x);
21     }
22 }
23
24 m!();
25
26 fn main() {}