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