]> git.proxmox.com Git - rustc.git/blob - src/test/ui/type-alias-impl-trait/generic_underconstrained.min_tait.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / type-alias-impl-trait / generic_underconstrained.min_tait.stderr
1 error: at least one trait must be specified
2 --> $DIR/generic_underconstrained.rs:9:35
3 |
4 LL | type Underconstrained<T: Trait> = impl 'static;
5 | ^^^^^^^^^^^^
6
7 error[E0277]: the trait bound `T: Trait` is not satisfied
8 --> $DIR/generic_underconstrained.rs:13:31
9 |
10 LL | type Underconstrained<T: Trait> = impl 'static;
11 | ----- required by this bound in `Underconstrained`
12 ...
13 LL | fn underconstrain<T>(_: T) -> Underconstrained<T> {
14 | ^^^^^^^^^^^^^^^^^^^ the trait `Trait` is not implemented for `T`
15 |
16 help: consider restricting type parameter `T`
17 |
18 LL | fn underconstrain<T: Trait>(_: T) -> Underconstrained<T> {
19 | ^^^^^^^
20
21 error: aborting due to 2 previous errors
22
23 For more information about this error, try `rustc --explain E0277`.