]> git.lizzy.rs Git - rust.git/blob - tests/ui/attributes/variant-attributes.rs
Rollup merge of #106489 - jschwe:fix_linker_detection, r=petrochenkov
[rust.git] / tests / ui / attributes / variant-attributes.rs
1 // build-pass (FIXME(62277): could be check-pass?)
2 // pp-exact - Make sure we actually print the attributes
3 // pretty-expanded FIXME #23616
4
5 #![allow(non_camel_case_types)]
6 #![feature(rustc_attrs)]
7
8 enum crew_of_enterprise_d {
9
10     #[rustc_dummy]
11     jean_luc_picard,
12
13     #[rustc_dummy]
14     william_t_riker,
15
16     #[rustc_dummy]
17     beverly_crusher,
18
19     #[rustc_dummy]
20     deanna_troi,
21
22     #[rustc_dummy]
23     data,
24
25     #[rustc_dummy]
26     worf,
27
28     #[rustc_dummy]
29     geordi_la_forge,
30 }
31
32 fn boldly_go(_crew_member: crew_of_enterprise_d, _where: String) { }
33
34 fn main() {
35     boldly_go(crew_of_enterprise_d::worf,
36               "where no one has gone before".to_string());
37 }