]> git.proxmox.com Git - rustc.git/blame - src/vendor/custom_derive/tests/empty_bi_derives.rs
New upstream version 1.22.1+dfsg1
[rustc.git] / src / vendor / custom_derive / tests / empty_bi_derives.rs
CommitLineData
ea8adc8c
XL
1/*\r
2Copyright ⓒ 2015 rust-custom-derive contributors.\r
3\r
4Licensed 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
7files in the project carrying such notice may not be copied, modified,\r
8or distributed except according to those terms.\r
9*/\r
10#[macro_use] extern crate custom_derive;\r
11\r
12macro_rules! Dummy {\r
13 ($($tts:tt)*) => {};\r
14}\r
15\r
16custom_derive! {\r
17 #[derive(Dummy)]\r
18 enum Foo { Bar }\r
19}\r
20\r
21#[test]\r
22fn test_empty_bi_derives() {\r
23 let _ = Foo::Bar;\r
24}\r