]> git.proxmox.com Git - rustc.git/blob - src/test/ui/type-alias-impl-trait/generic_underconstrained2.full_tait.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / type-alias-impl-trait / generic_underconstrained2.full_tait.stderr
1 error: at least one trait must be specified
2 --> $DIR/generic_underconstrained2.rs:8: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:17:46
9 |
10 LL | type Underconstrained2<T: std::fmt::Debug> = impl 'static;
11 | ^^^^^^^^^^^^
12
13 warning: the feature `type_alias_impl_trait` is incomplete and may not be safe to use and/or cause compiler crashes
14 --> $DIR/generic_underconstrained2.rs:3:32
15 |
16 LL | #![cfg_attr(full_tait, feature(type_alias_impl_trait))]
17 | ^^^^^^^^^^^^^^^^^^^^^
18 |
19 = note: `#[warn(incomplete_features)]` on by default
20 = note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
21
22 error[E0277]: `U` doesn't implement `Debug`
23 --> $DIR/generic_underconstrained2.rs:12:33
24 |
25 LL | type Underconstrained<T: std::fmt::Debug> = impl 'static;
26 | --------------- required by this bound in `Underconstrained`
27 ...
28 LL | fn underconstrained<U>(_: U) -> Underconstrained<U> {
29 | ^^^^^^^^^^^^^^^^^^^ `U` cannot be formatted using `{:?}` because it doesn't implement `Debug`
30 |
31 help: consider restricting type parameter `U`
32 |
33 LL | fn underconstrained<U: std::fmt::Debug>(_: U) -> Underconstrained<U> {
34 | ^^^^^^^^^^^^^^^^^
35
36 error[E0277]: `V` doesn't implement `Debug`
37 --> $DIR/generic_underconstrained2.rs:21:43
38 |
39 LL | type Underconstrained2<T: std::fmt::Debug> = impl 'static;
40 | --------------- required by this bound in `Underconstrained2`
41 ...
42 LL | fn underconstrained2<U, V>(_: U, _: V) -> Underconstrained2<V> {
43 | ^^^^^^^^^^^^^^^^^^^^ `V` cannot be formatted using `{:?}` because it doesn't implement `Debug`
44 |
45 help: consider restricting type parameter `V`
46 |
47 LL | fn underconstrained2<U, V: std::fmt::Debug>(_: U, _: V) -> Underconstrained2<V> {
48 | ^^^^^^^^^^^^^^^^^
49
50 error: aborting due to 4 previous errors; 1 warning emitted
51
52 For more information about this error, try `rustc --explain E0277`.