1 error[E0277]: the trait bound `&mut T: Clone` is not satisfied
2 --> $DIR/issue-79458.rs:6:5
5 | ----- in this derive macro expansion
6 LL | struct Foo<'a, T> {
8 | ^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `&mut T`
10 = help: the trait `Clone` is implemented for `&T`
11 = note: `Clone` is implemented for `&T`, but not for `&mut T`
12 = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
14 error: aborting due to previous error
16 For more information about this error, try `rustc --explain E0277`.