diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-18988.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-18988.rs b/src/test/ui/issues/issue-18988.rs new file mode 100644 index 000000000..708965d81 --- /dev/null +++ b/src/test/ui/issues/issue-18988.rs @@ -0,0 +1,11 @@ +// check-pass +#![allow(dead_code)] +pub trait Foo : Send { } + +pub struct MyFoo { + children: Vec<Box<dyn Foo>>, +} + +impl Foo for MyFoo { } + +pub fn main() { } |