Skip to content

Commit 9d0803e

Browse files
committed
libcore: make result of iter::from_generator Clone
This is currently only relevant with #![feature(generator_clone)].
1 parent 55310b9 commit 9d0803e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/iter/sources/from_generator.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ pub fn from_generator<G: Generator<Return = ()> + Unpin>(generator: G) -> FromGe
3535
///
3636
/// [`iter::from_generator()`]: from_generator
3737
#[unstable(feature = "iter_from_generator", issue = "43122", reason = "generators are unstable")]
38+
#[derive(Clone)]
3839
pub struct FromGenerator<G>(G);
3940

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

0 commit comments

Comments
 (0)