about summary refs log tree commit diff
path: root/tests/ui/traits/dyn-trait-size-error-23281.rs
blob: 8e44b8c87993441d9018c4d27fd4fa4802350e4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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