3 #![allow(unused_imports)]
4 #![allow(unused_must_use)]
5 // pretty-expanded FIXME #23616
7 #![feature(rustc_private)]
9 extern crate serialize;
12 use serialize::{Encoder, Encodable};
15 struct Foo<T: Encodable> {
19 impl<T: Encodable> Drop for Foo<T> {
21 json::encode(&self.v);
26 let _ = Foo { v: 10 };