diff options
Diffstat (limited to 'tests/ui/issues/issue-18107.rs')
-rw-r--r-- | tests/ui/issues/issue-18107.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-18107.rs b/tests/ui/issues/issue-18107.rs new file mode 100644 index 000000000..4bf5b6c0f --- /dev/null +++ b/tests/ui/issues/issue-18107.rs @@ -0,0 +1,13 @@ +pub trait AbstractRenderer {} + +fn _create_render(_: &()) -> + dyn AbstractRenderer +//~^ ERROR return type cannot have an unboxed trait object +{ + match 0 { + _ => unimplemented!() + } +} + +fn main() { +} |