os-rust/src/test/ui/issues/issue-69725.stderr

27 lines
1 KiB
Text
Raw Normal View History

2020-03-07 04:38:50 +09:00
error[E0599]: no method named `clone` found for struct `issue_69725::Struct<A>` in the current scope
--> $DIR/issue-69725.rs:7:32
2020-03-07 04:38:50 +09:00
|
LL | let _ = Struct::<A>::new().clone();
| ^^^^^ method not found in `issue_69725::Struct<A>`
|
::: $DIR/auxiliary/issue-69725.rs:2:1
|
LL | pub struct Struct<A>(A);
| ------------------------ doesn't satisfy `issue_69725::Struct<A>: std::clone::Clone`
|
2020-06-11 21:31:49 -05:00
::: $SRC_DIR/core/src/clone.rs:LL:COL
|
LL | fn clone(&self) -> Self;
| -----
| |
| the method is available for `std::sync::Arc<issue_69725::Struct<A>>` here
| the method is available for `std::rc::Rc<issue_69725::Struct<A>>` here
2020-03-07 04:38:50 +09:00
|
= note: the method `clone` exists but the following trait bounds were not satisfied:
`A: std::clone::Clone`
which is required by `issue_69725::Struct<A>: std::clone::Clone`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0599`.