fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
649 B16 linesraw
1error[E0277]: the trait bound `&mut T: Clone` is not satisfied
2  --> $DIR/issue-79458.rs:6:5
3   |
4LL | #[derive(Clone)]
5   |          ----- in this derive macro expansion
6LL | struct Foo<'a, T> {
7LL |     bar: &'a mut T
8   |     ^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `&mut T`
9   |
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)
13
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0277`.