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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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() {
}