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