]> git.proxmox.com Git - rustc.git/blob - src/test/ui/traits/issue-71136.stderr
New upstream version 1.55.0+dfsg1
[rustc.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 | ^^^^^^^^^^^^^^^^^^ expected an implementor of trait `Clone`
9 |
10 = note: required because of the requirements on the impl of `Clone` for `Vec<Foo>`
11 note: required by `clone`
12 --> $SRC_DIR/core/src/clone.rs:LL:COL
13 |
14 LL | fn clone(&self) -> Self;
15 | ^^^^^^^^^^^^^^^^^^^^^^^^
16 = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0277`.