]>
Commit | Line | Data |
---|---|---|
48663c56 | 1 | error: at least one trait must be specified |
60c5eb7d | 2 | --> $DIR/generic_underconstrained.rs:6:35 |
48663c56 | 3 | | |
416331ca | 4 | LL | type Underconstrained<T: Trait> = impl 'static; |
60c5eb7d | 5 | | ^^^^^^^^^^^^ |
48663c56 | 6 | |
8faf50e0 | 7 | error[E0277]: the trait bound `T: Trait` is not satisfied |
1b1a35ee | 8 | --> $DIR/generic_underconstrained.rs:10:31 |
8faf50e0 | 9 | | |
416331ca | 10 | LL | type Underconstrained<T: Trait> = impl 'static; |
1b1a35ee XL |
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` | |
8faf50e0 | 15 | | |
ba9703b0 XL |
16 | help: consider restricting type parameter `T` |
17 | | | |
18 | LL | fn underconstrain<T: Trait>(_: T) -> Underconstrained<T> { | |
19 | | ^^^^^^^ | |
8faf50e0 | 20 | |
48663c56 | 21 | error: aborting due to 2 previous errors |
8faf50e0 XL |
22 | |
23 | For more information about this error, try `rustc --explain E0277`. |