about summary refs log tree commit diff
path: root/tests/ui/issues/issue-18107.rs
blob: b1b6ff4f7ad264b5dfd535e6d8610b2b8b4fb76c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
pub trait AbstractRenderer {}

fn _create_render(_: &()) ->
    dyn AbstractRenderer
//~^ ERROR return type cannot be a trait object without pointer indirection
{
    match 0 {
        _ => unimplemented!()
    }
}

fn main() {
}