2018-08-08 14:28:26 +02:00
|
|
|
error[E0277]: the trait bound `bar::S: std::clone::Clone` is not satisfied
|
2019-09-20 11:58:20 -07:00
|
|
|
--> $DIR/issue-1920-2.rs:10:20
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-08-24 14:44:43 -07:00
|
|
|
LL | fn assert_clone<T>() where T : Clone { }
|
2019-09-04 10:17:59 -07:00
|
|
|
| ------------ ----- required by this bound in `assert_clone`
|
2019-08-24 14:44:43 -07:00
|
|
|
...
|
2018-08-08 14:28:26 +02:00
|
|
|
LL | assert_clone::<bar::S>();
|
2019-09-20 11:58:20 -07:00
|
|
|
| ^^^^^^ the trait `std::clone::Clone` is not implemented for `bar::S`
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|