]>
Commit | Line | Data |
---|---|---|
48663c56 | 1 | error: at least one trait must be specified |
60c5eb7d | 2 | --> $DIR/generic_underconstrained2.rs:5:45 |
48663c56 | 3 | | |
416331ca | 4 | LL | type Underconstrained<T: std::fmt::Debug> = impl 'static; |
60c5eb7d | 5 | | ^^^^^^^^^^^^ |
48663c56 XL |
6 | |
7 | error: at least one trait must be specified | |
60c5eb7d | 8 | --> $DIR/generic_underconstrained2.rs:14:46 |
48663c56 | 9 | | |
416331ca | 10 | LL | type Underconstrained2<T: std::fmt::Debug> = impl 'static; |
60c5eb7d | 11 | | ^^^^^^^^^^^^ |
48663c56 | 12 | |
1b1a35ee XL |
13 | error[E0277]: `U` doesn't implement `Debug` |
14 | --> $DIR/generic_underconstrained2.rs:9:33 | |
8faf50e0 | 15 | | |
416331ca | 16 | LL | type Underconstrained<T: std::fmt::Debug> = impl 'static; |
1b1a35ee | 17 | | --------------- required by this bound in `Underconstrained` |
e74abb32 | 18 | ... |
1b1a35ee XL |
19 | LL | fn underconstrained<U>(_: U) -> Underconstrained<U> { |
20 | | ^^^^^^^^^^^^^^^^^^^ `U` cannot be formatted using `{:?}` because it doesn't implement `Debug` | |
8faf50e0 | 21 | | |
ba9703b0 XL |
22 | help: consider restricting type parameter `U` |
23 | | | |
1b1a35ee XL |
24 | LL | fn underconstrained<U: Debug>(_: U) -> Underconstrained<U> { |
25 | | ^^^^^^^ | |
8faf50e0 | 26 | |
1b1a35ee XL |
27 | error[E0277]: `V` doesn't implement `Debug` |
28 | --> $DIR/generic_underconstrained2.rs:18:43 | |
8faf50e0 | 29 | | |
416331ca | 30 | LL | type Underconstrained2<T: std::fmt::Debug> = impl 'static; |
1b1a35ee | 31 | | --------------- required by this bound in `Underconstrained2` |
e74abb32 | 32 | ... |
1b1a35ee XL |
33 | LL | fn underconstrained2<U, V>(_: U, _: V) -> Underconstrained2<V> { |
34 | | ^^^^^^^^^^^^^^^^^^^^ `V` cannot be formatted using `{:?}` because it doesn't implement `Debug` | |
8faf50e0 | 35 | | |
ba9703b0 XL |
36 | help: consider restricting type parameter `V` |
37 | | | |
1b1a35ee XL |
38 | LL | fn underconstrained2<U, V: Debug>(_: U, _: V) -> Underconstrained2<V> { |
39 | | ^^^^^^^ | |
8faf50e0 | 40 | |
48663c56 | 41 | error: aborting due to 4 previous errors |
8faf50e0 XL |
42 | |
43 | For more information about this error, try `rustc --explain E0277`. |