]> git.proxmox.com Git - rustc.git/blob - src/test/ui/type-alias-impl-trait/generic_underconstrained2.stderr
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / ui / type-alias-impl-trait / generic_underconstrained2.stderr
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 error[E0277]: `U` doesn't implement `Debug`
14 --> $DIR/generic_underconstrained2.rs:9:33
15 |
16 LL | type Underconstrained<T: std::fmt::Debug> = impl 'static;
17 | --------------- required by this bound in `Underconstrained`
18 ...
19 LL | fn underconstrained<U>(_: U) -> Underconstrained<U> {
20 | ^^^^^^^^^^^^^^^^^^^ `U` cannot be formatted using `{:?}` because it doesn't implement `Debug`
21 |
22 help: consider restricting type parameter `U`
23 |
24 LL | fn underconstrained<U: Debug>(_: U) -> Underconstrained<U> {
25 | ^^^^^^^
26
27 error[E0277]: `V` doesn't implement `Debug`
28 --> $DIR/generic_underconstrained2.rs:18:43
29 |
30 LL | type Underconstrained2<T: std::fmt::Debug> = impl 'static;
31 | --------------- required by this bound in `Underconstrained2`
32 ...
33 LL | fn underconstrained2<U, V>(_: U, _: V) -> Underconstrained2<V> {
34 | ^^^^^^^^^^^^^^^^^^^^ `V` cannot be formatted using `{:?}` because it doesn't implement `Debug`
35 |
36 help: consider restricting type parameter `V`
37 |
38 LL | fn underconstrained2<U, V: Debug>(_: U, _: V) -> Underconstrained2<V> {
39 | ^^^^^^^
40
41 error: aborting due to 4 previous errors
42
43 For more information about this error, try `rustc --explain E0277`.