@@ -31,42 +31,34 @@ LL | fn underconstrained2<U, V: std::fmt::Debug>(_: U, _: V) -> Underconstrained
31
31
| +++++++++++++++++
32
32
33
33
error[E0277]: `U` doesn't implement `Debug`
34
- --> $DIR/generic_underconstrained2.rs:8:53
34
+ --> $DIR/generic_underconstrained2.rs:8:33
35
35
|
36
- LL | fn underconstrained<U>(_: U) -> Underconstrained<U> {
37
- | _____________________________________________________^
38
- LL | |
39
- LL | |
40
- LL | | 5u32
41
- LL | | }
42
- | |_^ `U` cannot be formatted using `{:?}` because it doesn't implement `Debug`
36
+ LL | fn underconstrained<U>(_: U) -> Underconstrained<U> {
37
+ | ^^^^^^^^^^^^^^^^^^^ `U` cannot be formatted using `{:?}` because it doesn't implement `Debug`
43
38
|
44
39
note: required by a bound on the type alias `Underconstrained`
45
40
--> $DIR/generic_underconstrained2.rs:5:26
46
41
|
47
42
LL | type Underconstrained<T: std::fmt::Debug> = impl Send;
48
43
| ^^^^^^^^^^^^^^^ required by this bound
44
+ = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
49
45
help: consider restricting type parameter `U` with trait `Debug`
50
46
|
51
47
LL | fn underconstrained<U: std::fmt::Debug>(_: U) -> Underconstrained<U> {
52
48
| +++++++++++++++++
53
49
54
50
error[E0277]: `V` doesn't implement `Debug`
55
- --> $DIR/generic_underconstrained2.rs:17:64
51
+ --> $DIR/generic_underconstrained2.rs:17:43
56
52
|
57
- LL | fn underconstrained2<U, V>(_: U, _: V) -> Underconstrained2<V> {
58
- | ________________________________________________________________^
59
- LL | |
60
- LL | |
61
- LL | | 5u32
62
- LL | | }
63
- | |_^ `V` cannot be formatted using `{:?}` because it doesn't implement `Debug`
53
+ LL | fn underconstrained2<U, V>(_: U, _: V) -> Underconstrained2<V> {
54
+ | ^^^^^^^^^^^^^^^^^^^^ `V` cannot be formatted using `{:?}` because it doesn't implement `Debug`
64
55
|
65
56
note: required by a bound on the type alias `Underconstrained2`
66
57
--> $DIR/generic_underconstrained2.rs:14:27
67
58
|
68
59
LL | type Underconstrained2<T: std::fmt::Debug> = impl Send;
69
60
| ^^^^^^^^^^^^^^^ required by this bound
61
+ = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
70
62
help: consider restricting type parameter `V` with trait `Debug`
71
63
|
72
64
LL | fn underconstrained2<U, V: std::fmt::Debug>(_: U, _: V) -> Underconstrained2<V> {
0 commit comments