summary refs log tree commit diff
path: root/src/test/ui/wf/wf-enum-bound.stderr
blob: be64ddb975994ce1b3a2a0d33277500ecddb11dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
error[E0277]: the trait bound `U: std::marker::Copy` is not satisfied
  --> $DIR/wf-enum-bound.rs:10:14
   |
LL | trait ExtraCopy<T:Copy> { }
   | ----------------------- required by `ExtraCopy`
...
LL |     where T: ExtraCopy<U>
   |              ^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `U`
   |
help: consider restricting this type parameter with `where U: std::marker::Copy`
  --> $DIR/wf-enum-bound.rs:9:17
   |
LL | enum SomeEnum<T,U>
   |                 ^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.