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