]> git.lizzy.rs Git - rust.git/blob - tests/ui/trait-impl-bound-suggestions.stderr
Auto merge of #106742 - compiler-errors:new-solver-make-it-not-ice, r=lcnr
[rust.git] / tests / ui / trait-impl-bound-suggestions.stderr
1 error[E0277]: the trait bound `X: Copy` is not satisfied
2   --> $DIR/trait-impl-bound-suggestions.rs:14:52
3    |
4 LL |     fn return_the_constrained_type(&self, x: X) -> ConstrainedStruct<X> {
5    |                                                    ^^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `X`
6    |
7 note: required by a bound in `ConstrainedStruct`
8   --> $DIR/trait-impl-bound-suggestions.rs:8:29
9    |
10 LL | struct ConstrainedStruct<X: Copy> {
11    |                             ^^^^ required by this bound in `ConstrainedStruct`
12 help: consider further restricting type parameter `X`
13    |
14 LL | trait InsufficientlyConstrainedGeneric<X=()> where X: std::marker::Copy {
15    |                                              ++++++++++++++++++++++++++
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0277`.