blob: cdefb680c755240fbc54f36d1664161f8884ccff [file] [log] [blame]
// run-pass
#![allow(dead_code)]
struct S<T> {
x: T
}
impl<T> ::std::ops::Drop for S<T> {
fn drop(&mut self) {
println!("bye");
}
}
pub fn main() {
let _x = S { x: 1 };
}