Skip to content

Commit 17a0740

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

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/src/iter/sources/from_generator.rs

+1
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)