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