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