about summary refs log tree commit diff
path: root/tests/ui/async-await/issues/issue-95307.rs
blob: 40905c239c348b691e7448ce5dc313564cf88c9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//@ edition:2018

// Regression test for #95307.
// The ICE occurred on all the editions, specifying edition:2018 to reduce diagnostics.

pub trait C {
    async fn new() -> [u8; _];
    //~^ ERROR: the placeholder `_` is not allowed within types on item signatures for opaque types
    //~| ERROR: the placeholder `_` is not allowed within types on item signatures for opaque types
    //~| ERROR: the placeholder `_` is not allowed within types on item signatures for opaque types
    //~| ERROR: the placeholder `_` is not allowed within types on item signatures for opaque types
}

fn main() {}