diff options
| author | mitaa <mitaa.ceb@gmail.com> | 2016-03-22 06:59:43 +0100 |
|---|---|---|
| committer | mitaa <mitaa.ceb@gmail.com> | 2016-03-22 06:59:43 +0100 |
| commit | 00a32b288442efdf219230147ddcb834827ce65d (patch) | |
| tree | 931e6fb9668d4ea3309f4f7e6a9eb4c5ddfda713 /src/test/auxiliary | |
| parent | 0215681744bb1156ef686ab265ed71e4d5705b64 (diff) | |
| download | rust-00a32b288442efdf219230147ddcb834827ce65d.tar.gz rust-00a32b288442efdf219230147ddcb834827ce65d.zip | |
Omit `pub` for inlined variant-struct fields
Diffstat (limited to 'src/test/auxiliary')
| -rw-r--r-- | src/test/auxiliary/variant-struct.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/auxiliary/variant-struct.rs b/src/test/auxiliary/variant-struct.rs new file mode 100644 index 00000000000..d846c0adf61 --- /dev/null +++ b/src/test/auxiliary/variant-struct.rs @@ -0,0 +1,15 @@ +// Copyright 2016 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +pub enum Foo { + Bar { + qux: (), + } +} |
