//@ run-pass #![allow(unused_imports)] #![allow(dead_code)] // this code used to cause an ICE use std::marker; trait X { fn dummy(&self) -> T { panic!() } } struct S {f: Box+'static>, g: Box+'static>} struct F; impl X for F { } fn main() { S {f: Box::new(F), g: Box::new(F) }; }