diff options
Diffstat (limited to 'tests/ui/issues/issue-10228.rs')
-rw-r--r-- | tests/ui/issues/issue-10228.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-10228.rs b/tests/ui/issues/issue-10228.rs new file mode 100644 index 000000000..ebf8b436f --- /dev/null +++ b/tests/ui/issues/issue-10228.rs @@ -0,0 +1,20 @@ +// run-pass +#![allow(dead_code)] +#![allow(unused_variables)] +// pretty-expanded FIXME #23616 + +enum StdioContainer { + CreatePipe(bool) +} + +struct Test<'a> { + args: &'a [String], + io: &'a [StdioContainer] +} + +pub fn main() { + let test = Test { + args: &[], + io: &[StdioContainer::CreatePipe(true)] + }; +} |