]> git.proxmox.com Git - rustc.git/blob - src/test/ui/type-alias-impl-trait/generic_underconstrained2.stderr
New upstream version 1.41.1+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 `std::fmt::Debug`
14 --> $DIR/generic_underconstrained2.rs:5:1
15 |
16 LL | type Underconstrained<T: std::fmt::Debug> = impl 'static;
17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `U` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug`
18 ...
19 LL | fn underconstrained<U>(_: U) -> Underconstrained<U> {
20 | - help: consider restricting this bound: `U: std::fmt::Debug`
21 |
22 = help: the trait `std::fmt::Debug` is not implemented for `U`
23 = note: the return type of a function must have a statically known size
24
25 error[E0277]: `V` doesn't implement `std::fmt::Debug`
26 --> $DIR/generic_underconstrained2.rs:14:1
27 |
28 LL | type Underconstrained2<T: std::fmt::Debug> = impl 'static;
29 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `V` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug`
30 ...
31 LL | fn underconstrained2<U, V>(_: U, _: V) -> Underconstrained2<V> {
32 | - help: consider restricting this bound: `V: std::fmt::Debug`
33 |
34 = help: the trait `std::fmt::Debug` is not implemented for `V`
35 = note: the return type of a function must have a statically known size
36
37 error: aborting due to 4 previous errors
38
39 For more information about this error, try `rustc --explain E0277`.