diff options
Diffstat (limited to 'src/test/ui/issues/issue-23281.rs')
-rw-r--r-- | src/test/ui/issues/issue-23281.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-23281.rs b/src/test/ui/issues/issue-23281.rs new file mode 100644 index 000000000..727168964 --- /dev/null +++ b/src/test/ui/issues/issue-23281.rs @@ -0,0 +1,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() {} |