rust/tests/ui/traits/copy-impl-cannot-normalize.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
450 B
Plaintext
Raw Normal View History

error[E0277]: the trait bound `T: TraitFoo` is not satisfied
2022-09-16 00:06:25 +02:00
--> $DIR/copy-impl-cannot-normalize.rs:22:18
|
LL | impl<T> Copy for Foo<T> {}
2022-09-16 00:06:25 +02:00
| ^^^^^^ 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`.