]> git.lizzy.rs Git - rust.git/blob - tests/target/struct-field-attributes.rs
Merge pull request #1530 from azyobuzin/vscodeextlink
[rust.git] / tests / target / struct-field-attributes.rs
1 // #1535
2 #![feature(struct_field_attributes)]
3
4 struct Foo {
5     bar: u64,
6
7     #[cfg(test)]
8     qux: u64,
9 }
10
11 fn do_something() -> Foo {
12     Foo {
13         bar: 0,
14
15         #[cfg(test)]
16         qux: 1,
17     }
18 }
19
20 fn main() {
21     do_something();
22 }