]> git.lizzy.rs Git - rust.git/blob - src/test/ui-fulldeps/issue-4036.rs
Rollup merge of #92758 - mfrw:mfrw/rustdoc-impl-write, r=GuillaumeGomez
[rust.git] / src / test / ui-fulldeps / issue-4036.rs
1 // run-pass
2 // Issue #4036: Test for an issue that arose around fixing up type inference
3 // byproducts in vtable records.
4
5 // pretty-expanded FIXME #23616
6
7 #![feature(rustc_private)]
8
9 extern crate rustc_serialize;
10
11 use rustc_serialize::{json, Decodable};
12
13 pub fn main() {
14     let json = json::from_str("[1]").unwrap();
15     let mut decoder = json::Decoder::new(json);
16     let _x: Vec<isize> = Decodable::decode(&mut decoder);
17 }