mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-03 02:40:40 +00:00
14 lines
230 B
Rust
14 lines
230 B
Rust
pub trait AbstractRenderer {}
|
|
|
|
fn _create_render(_: &()) ->
|
|
dyn AbstractRenderer
|
|
//~^ ERROR return type cannot be a trait object without pointer indirection
|
|
{
|
|
match 0 {
|
|
_ => unimplemented!()
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
}
|