]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/underconstrained_generic.stderr
Check hidden types for well formedness at the definition site instead of only at...
[rust.git] / src / test / ui / type-alias-impl-trait / underconstrained_generic.stderr
1 error[E0277]: the trait bound `T: Trait` is not satisfied
2   --> $DIR/underconstrained_generic.rs:22:5
3    |
4 LL |     ()
5    |     ^^ the trait `Trait` is not implemented for `T`
6    |
7 note: required because of the requirements on the impl of `ProofForConversion<T>` for `()`
8   --> $DIR/underconstrained_generic.rs:13:16
9    |
10 LL | impl<X: Trait> ProofForConversion<X> for () {
11    |                ^^^^^^^^^^^^^^^^^^^^^     ^^
12 help: consider restricting type parameter `T`
13    |
14 LL | type Converter<T: Trait> = impl ProofForConversion<T>;
15    |                 +++++++
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0277`.