]>
Commit | Line | Data |
---|---|---|
1a4d82fc | 1 | // Copyright 2014 The Rust Project Developers. See the COPYRIGHT |
223e47cc LB |
2 | // file at the top-level directory of this distribution and at |
3 | // http://rust-lang.org/COPYRIGHT. | |
4 | // | |
5 | // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | |
6 | // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | |
7 | // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your | |
8 | // option. This file may not be copied, modified, or distributed | |
9 | // except according to those terms. | |
10 | ||
0bf4aa26 XL |
11 | #![allow(dead_code)] |
12 | #![allow(unused_variables)] | |
1a4d82fc JJ |
13 | // Test that the `wf` checker properly handles bound regions in object |
14 | // types. Compiling this code used to trigger an ICE. | |
223e47cc | 15 | |
c34b1796 AL |
16 | // pretty-expanded FIXME #23616 |
17 | ||
1a4d82fc | 18 | pub struct Context<'tcx> { |
c34b1796 | 19 | vec: &'tcx Vec<isize> |
223e47cc LB |
20 | } |
21 | ||
c34b1796 | 22 | pub type Cmd<'a> = &'a isize; |
1a4d82fc JJ |
23 | |
24 | pub type DecodeInlinedItem<'a> = | |
c34b1796 | 25 | Box<for<'tcx> FnMut(Cmd, &Context<'tcx>) -> Result<&'tcx isize, ()> + 'a>; |
1a4d82fc JJ |
26 | |
27 | fn foo(d: DecodeInlinedItem) { | |
223e47cc | 28 | } |
1a4d82fc JJ |
29 | |
30 | fn main() { } |