mirror of https://github.com/rust-lang/rust.git
Rollup merge of #68810 - ollie27:once_with_copy, r=Dylan-DPC
Remove Copy impl from OnceWith Iterators typically don't implement `Copy` and this shouldn't be an exception.
This commit is contained in:
commit
94d6a96189
|
@ -398,7 +398,7 @@ pub fn once<T>(value: T) -> Once<T> {
|
|||
/// See its documentation for more.
|
||||
///
|
||||
/// [`once_with`]: fn.once_with.html
|
||||
#[derive(Copy, Clone, Debug)]
|
||||
#[derive(Clone, Debug)]
|
||||
#[stable(feature = "iter_once_with", since = "1.43.0")]
|
||||
pub struct OnceWith<F> {
|
||||
gen: Option<F>,
|
||||
|
|
Loading…
Reference in New Issue