1 2 3 4 5 6 7 8 9 10 11
// check-pass #![allow(dead_code)] pub trait Foo : Send { } pub struct MyFoo { children: Vec<Box<dyn Foo>>, } impl Foo for MyFoo { } pub fn main() { }