-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
yield without value from a gen block #123614
Copy link
Copy link
Closed
Labels
C-discussionCategory: Discussion or questions that doesn't represent real issues.Category: Discussion or questions that doesn't represent real issues.F-gen_blocks`gen {}` expressions that produce `Iterator`s`gen {}` expressions that produce `Iterator`s
Metadata
Metadata
Assignees
Labels
C-discussionCategory: Discussion or questions that doesn't represent real issues.Category: Discussion or questions that doesn't represent real issues.F-gen_blocks`gen {}` expressions that produce `Iterator`s`gen {}` expressions that produce `Iterator`s
Type
Fields
Give feedbackNo fields configured for issues without a type.
I tried this code:
I expected to see this happen: The gen blocks RFC does not specify the behavior of bare
yield(without an argument). There are three possible choices, each with good reasons for and against:NonefromIterator::next()yield ()Instead, this happened: The current behavior is that of
yield ().Meta
rustc --version:cc #117078
@rustbot label F-gen_blocks