Skip to content

Commit

Permalink
libcore: make result of iter::from_generator Clone
Browse files Browse the repository at this point in the history
This is currently only relevant with #![feature(generator_clone)].
  • Loading branch information
Xiretza committed Dec 10, 2022
1 parent a8b5d4b commit 17a0740
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/core/src/iter/sources/from_generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ pub fn from_generator<G: Generator<Return = ()> + Unpin>(generator: G) -> FromGe
///
/// [`iter::from_generator()`]: from_generator
#[unstable(feature = "iter_from_generator", issue = "43122", reason = "generators are unstable")]
#[derive(Clone)]
pub struct FromGenerator<G>(G);

#[unstable(feature = "iter_from_generator", issue = "43122", reason = "generators are unstable")]
Expand Down

0 comments on commit 17a0740

Please sign in to comment.