]> git.proxmox.com Git - rustc.git/blob - src/test/ui/type-alias-impl-trait/generic_underconstrained.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / type-alias-impl-trait / generic_underconstrained.stderr
1 error: at least one trait must be specified
2 --> $DIR/generic_underconstrained.rs:6: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:6:1
9 |
10 LL | type Underconstrained<T: Trait> = impl 'static;
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Trait` is not implemented for `T`
12 ...
13 LL | fn underconstrain<T>(_: T) -> Underconstrained<T> {
14 | - help: consider restricting this bound: `T: Trait`
15 |
16 = note: the return type of a function must have a statically known size
17
18 error: aborting due to 2 previous errors
19
20 For more information about this error, try `rustc --explain E0277`.