1 2 3 4 5 6 7 8 9 10 11 12
pub struct Struct; impl Struct { pub fn function(funs: Vec<dyn Fn() -> ()>) {} //~^ ERROR the size for values of type } struct Vec<T> { t: T, } fn main() {}