]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/issue-71136.stderr
Auto merge of #98457 - japaric:gh98378, r=m-ou-se
[rust.git] / src / test / ui / traits / issue-71136.stderr
1 error[E0277]: the trait bound `Foo: Clone` is not satisfied
2   --> $DIR/issue-71136.rs:5:5
3    |
4 LL | #[derive(Clone)]
5    |          ----- in this derive macro expansion
6 LL | struct FooHolster {
7 LL |     the_foos: Vec<Foo>,
8    |     ^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `Foo`
9    |
10    = note: required for `Vec<Foo>` to implement `Clone`
11    = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
12 help: consider annotating `Foo` with `#[derive(Clone)]`
13    |
14 LL | #[derive(Clone)]
15    |
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0277`.