]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/issue-79458.stderr
:arrow_up: rust-analyzer
[rust.git] / src / test / ui / traits / issue-79458.stderr
1 error[E0277]: the trait bound `&mut T: Clone` is not satisfied
2   --> $DIR/issue-79458.rs:6:5
3    |
4 LL | #[derive(Clone)]
5    |          ----- in this derive macro expansion
6 LL | struct Foo<'a, T> {
7 LL |     bar: &'a mut T
8    |     ^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `&mut T`
9    |
10    = help: the following other types implement trait `Clone`:
11              &T
12              *const T
13              *mut T
14    = note: `Clone` is implemented for `&T`, but not for `&mut T`
15    = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0277`.