]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/macro-named-default.rs
Merge commit '7bfc26ec8e7a454786668e7e52ffe527fc649735' into clippyup
[rust.git] / src / test / ui / macros / macro-named-default.rs
1 // run-pass
2 macro_rules! default {
3     ($($x:tt)*) => { $($x)* }
4 }
5
6 default! {
7     struct A;
8 }
9
10 impl A {
11     default! {
12         fn foo(&self) {}
13     }
14 }
15
16 fn main() {
17     A.foo();
18 }