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