blob: ebbefb619c6165088e55afb44485fa56dab59555 [file] [log] [blame]
//! Regression test for https://github.com/rust-lang/rust/issues/10228
//@ run-pass
#![allow(dead_code)]
#![allow(unused_variables)]
enum StdioContainer {
CreatePipe(bool)
}
struct Test<'a> {
args: &'a [String],
io: &'a [StdioContainer]
}
pub fn main() {
let test = Test {
args: &[],
io: &[StdioContainer::CreatePipe(true)]
};
}