]> git.lizzy.rs Git - rust.git/blob - src/test/ui/trait-impl-bound-suggestions.stderr
Detect pub fn attr wrong order like `async pub`
[rust.git] / src / test / 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 | struct ConstrainedStruct<X: Copy> {
5    |                             ---- required by this bound in `ConstrainedStruct`
6 ...
7 LL |     fn return_the_constrained_type(&self, x: X) -> ConstrainedStruct<X> {
8    |                                                    ^^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `X`
9    |
10 help: consider further restricting type parameter `X`
11    |
12 LL | trait InsufficientlyConstrainedGeneric<X=()> where X: Copy {
13    |                                              ^^^^^^^^^^^^^
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0277`.