]> git.lizzy.rs Git - rust.git/blob - tests/ui/traits/copy-impl-cannot-normalize.stderr
Rollup merge of #106709 - khuey:disable_split_dwarf_inlining_by_default, r=davidtwco
[rust.git] / tests / ui / traits / copy-impl-cannot-normalize.stderr
1 error[E0277]: the trait bound `T: TraitFoo` is not satisfied
2   --> $DIR/copy-impl-cannot-normalize.rs:22:18
3    |
4 LL | impl<T> Copy for Foo<T> {}
5    |                  ^^^^^^ the trait `TraitFoo` is not implemented for `T`
6    |
7 help: consider restricting type parameter `T`
8    |
9 LL | impl<T: TraitFoo> Copy for Foo<T> {}
10    |       ++++++++++
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0277`.