]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-10228.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-10228.rs
1 // run-pass
2 #![allow(dead_code)]
3 #![allow(unused_variables)]
4 // pretty-expanded FIXME #23616
5
6 enum StdioContainer {
7     CreatePipe(bool)
8 }
9
10 struct Test<'a> {
11     args: &'a [String],
12     io: &'a [StdioContainer]
13 }
14
15 pub fn main() {
16     let test = Test {
17         args: &[],
18         io: &[StdioContainer::CreatePipe(true)]
19     };
20 }