Hi,
I'm trying to understand why this code doesn't work, but I can't figure it out.
use std::rc::Rc;
use std::fmt::Display;
trait FooTrait: Display + Clone + Copy {
fn bar();
}
#[derive(Debug, Copy, Clone)]
struct Foo {
item1: Vec<Rc<dyn FooTrait>>
}
Unrelated but is there a dark theme for this forum?