2021-07-22 19:16:33 +01:00
|
|
|
struct Bug {
|
|
|
|
|
V1: [(); {
|
|
|
|
|
let f: impl core::future::Future<Output = u8> = async { 1 };
|
2023-10-04 19:51:43 +00:00
|
|
|
//~^ `impl Trait` only allowed in function and inherent method argument and return types
|
2021-07-22 19:16:33 +01:00
|
|
|
//~| expected identifier
|
|
|
|
|
1
|
|
|
|
|
}],
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|