]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/issues/issue-79099.rs
:arrow_up: rust-analyzer
[rust.git] / src / test / ui / impl-trait / issues / issue-79099.rs
1 struct Bug {
2     V1: [(); {
3         let f: impl core::future::Future<Output = u8> = async { 1 };
4         //~^ `impl Trait` only allowed in function and inherent method return types
5         //~| expected identifier
6         1
7     }],
8 }
9
10 fn main() {}