summaryrefslogtreecommitdiffstats
path: root/tests/ui/generic-associated-types/bugs/issue-100013.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/generic-associated-types/bugs/issue-100013.rs')
-rw-r--r--tests/ui/generic-associated-types/bugs/issue-100013.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/ui/generic-associated-types/bugs/issue-100013.rs b/tests/ui/generic-associated-types/bugs/issue-100013.rs
index 973c548d7..b13b730d5 100644
--- a/tests/ui/generic-associated-types/bugs/issue-100013.rs
+++ b/tests/ui/generic-associated-types/bugs/issue-100013.rs
@@ -3,7 +3,7 @@
// edition: 2021
// We really should accept this, but we need implied bounds between the regions
-// in a generator interior.
+// in a coroutine interior.
pub trait FutureIterator {
type Future<'s, 'cx>: Send
@@ -12,21 +12,21 @@ pub trait FutureIterator {
}
fn call<I: FutureIterator>() -> impl Send {
- async { // a generator checked for autotrait impl `Send`
+ async { // a coroutine checked for autotrait impl `Send`
let x = None::<I::Future<'_, '_>>; // a type referencing GAT
async {}.await; // a yield point
}
}
fn call2<'a, 'b, I: FutureIterator>() -> impl Send {
- async { // a generator checked for autotrait impl `Send`
+ async { // a coroutine checked for autotrait impl `Send`
let x = None::<I::Future<'a, 'b>>; // a type referencing GAT
async {}.await; // a yield point
}
}
fn call3<'a: 'b, 'b, I: FutureIterator>() -> impl Send {
- async { // a generator checked for autotrait impl `Send`
+ async { // a coroutine checked for autotrait impl `Send`
let x = None::<I::Future<'a, 'b>>; // a type referencing GAT
async {}.await; // a yield point
}