rust/tests/ui/impl-trait/issues/issue-79099.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
248 B
Rust
Raw Normal View History

struct Bug {
V1: [(); {
let f: impl core::future::Future<Output = u8> = async { 1 };
2022-02-17 21:18:42 -06:00
//~^ `impl Trait` only allowed in function and inherent method return types
//~| expected identifier
1
}],
}
fn main() {}