summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/issues/issue-79099.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/impl-trait/issues/issue-79099.rs')
-rw-r--r--tests/ui/impl-trait/issues/issue-79099.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/impl-trait/issues/issue-79099.rs b/tests/ui/impl-trait/issues/issue-79099.rs
new file mode 100644
index 000000000..da53594f3
--- /dev/null
+++ b/tests/ui/impl-trait/issues/issue-79099.rs
@@ -0,0 +1,10 @@
+struct Bug {
+ V1: [(); {
+ let f: impl core::future::Future<Output = u8> = async { 1 };
+ //~^ `impl Trait` only allowed in function and inherent method return types
+ //~| expected identifier
+ 1
+ }],
+}
+
+fn main() {}