rust/tests/ui/issues/issue-18107.rs

14 lines
213 B
Rust
Raw Normal View History

2015-04-18 00:12:20 -05:00
pub trait AbstractRenderer {}
fn _create_render(_: &()) ->
2019-05-28 13:46:13 -05:00
dyn AbstractRenderer
//~^ ERROR return type cannot have an unboxed trait object
{
match 0 {
_ => unimplemented!()
}
}
fn main() {
}