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