| 1 | /* |
| 2 | Copyright ⓒ 2015 macro-attr contributors. |
| 3 | |
| 4 | Licensed under the MIT license (see LICENSE or <http://opensource.org |
| 5 | /licenses/MIT>) or the Apache License, Version 2.0 (see LICENSE of |
| 6 | <http://www.apache.org/licenses/LICENSE-2.0>), at your option. All |
| 7 | files in the project carrying such notice may not be copied, modified, |
| 8 | or distributed except according to those terms. |
| 9 | */ |
| 10 | #[macro_use] extern crate macro_attr; |
| 11 | |
| 12 | macro_rules! Dummy { |
| 13 | ($($tts:tt)*) => {}; |
| 14 | } |
| 15 | |
| 16 | macro_attr! { |
| 17 | #[derive(Dummy!,)] |
| 18 | enum Foo { Bar } |
| 19 | } |
| 20 | |
| 21 | #[test] |
| 22 | fn test_trailing_comma() { |
| 23 | let _ = Foo::Bar; |
| 24 | } |