2021-07-22 18:16:33 +00:00
|
|
|
struct Bug {
|
|
|
|
V1: [(); {
|
|
|
|
let f: impl core::future::Future<Output = u8> = async { 1 };
|
2024-01-07 17:11:48 +00:00
|
|
|
//~^ `impl Trait` is not allowed in the type of variable bindings
|
2021-07-22 18:16:33 +00:00
|
|
|
//~| expected identifier
|
|
|
|
1
|
|
|
|
}],
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|