2020-09-02 02:40:56 -05:00
|
|
|
error[E0277]: the trait bound `Foo: Clone` is not satisfied
|
2021-02-08 16:15:45 -06:00
|
|
|
--> $DIR/issue-71136.rs:5:5
|
2020-05-03 04:11:23 -05:00
|
|
|
|
|
2021-07-17 13:13:50 -05:00
|
|
|
LL | #[derive(Clone)]
|
|
|
|
| ----- in this derive macro expansion
|
|
|
|
LL | struct FooHolster {
|
2020-05-03 04:11:23 -05:00
|
|
|
LL | the_foos: Vec<Foo>,
|
2021-10-22 15:49:12 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `Foo`
|
2020-05-03 04:11:23 -05:00
|
|
|
|
|
2022-08-15 15:31:37 -05:00
|
|
|
= note: required for `Vec<Foo>` to implement `Clone`
|
2021-02-13 13:52:25 -06:00
|
|
|
= note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2022-03-31 09:58:45 -05:00
|
|
|
help: consider annotating `Foo` with `#[derive(Clone)]`
|
|
|
|
|
|
2023-03-17 21:18:39 -05:00
|
|
|
LL + #[derive(Clone)]
|
|
|
|
LL | struct Foo(u8);
|
2022-03-31 09:58:45 -05:00
|
|
|
|
|
2020-05-03 04:11:23 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|