summaryrefslogtreecommitdiffstats
path: root/src/test/ui/traits/copy-impl-cannot-normalize.stderr
blob: afdad160919f9570edfd80a67c57809f2c20af69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error[E0277]: the trait bound `T: TraitFoo` is not satisfied
  --> $DIR/copy-impl-cannot-normalize.rs:22:1
   |
LL | impl<T> Copy for Foo<T> {}
   | ^^^^^^^^^^^^^^^^^^^^^^^ the trait `TraitFoo` is not implemented for `T`
   |
help: consider restricting type parameter `T`
   |
LL | impl<T: TraitFoo> Copy for Foo<T> {}
   |       ++++++++++

error: aborting due to previous error

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