rust/tests/ui/traits/dyn-trait-size-error-23281.rs
2025-07-24 17:01:44 -04:00

15 lines
223 B
Rust

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() {}
// https://github.com/rust-lang/rust/issues/23281