std::error::Chain: remove Copy

remove Copy from Iterator as per comment
https://github.com/rust-lang/rust/issues/58520#issuecomment-553682166
This commit is contained in:
Harald Hoyer 2019-11-15 14:29:35 +01:00
parent ce36ab2b06
commit de122e673a
No known key found for this signature in database
GPG key ID: 340F12141EA0994D

View file

@ -791,7 +791,7 @@ impl dyn Error {
///
/// [`Error`]: trait.Error.html
#[unstable(feature = "error_iter", issue = "58520")]
#[derive(Copy, Clone, Debug)]
#[derive(Clone, Debug)]
pub struct Chain<'a> {
current: Option<&'a (dyn Error + 'static)>,
}