blob: 18cafddd6a91154b68d7c25882611ed2c3a5a936 [file]
//! Regression test for <https://github.com/rust-lang/rust/issues/18107>.
pub trait AbstractRenderer {}
fn _create_render(_: &()) ->
dyn AbstractRenderer
//~^ ERROR return type cannot be a trait object without pointer indirection
{
match 0 {
_ => unimplemented!()
}
}
fn main() {
}