]> git.proxmox.com Git - rustc.git/blob - src/test/ui/feature-gates/feature-gate-type_alias_impl_trait.stderr
New upstream version 1.42.0+dfsg1
[rustc.git] / src / test / ui / feature-gates / feature-gate-type_alias_impl_trait.stderr
1 error[E0658]: `impl Trait` in type aliases is unstable
2 --> $DIR/feature-gate-type_alias_impl_trait.rs:3:12
3 |
4 LL | type Foo = impl Debug;
5 | ^^^^^^^^^^
6 |
7 = note: for more information, see https://github.com/rust-lang/rust/issues/63063
8 = help: add `#![feature(type_alias_impl_trait)]` to the crate attributes to enable
9
10 error[E0658]: `impl Trait` in type aliases is unstable
11 --> $DIR/feature-gate-type_alias_impl_trait.rs:11:16
12 |
13 LL | type Baa = impl Debug;
14 | ^^^^^^^^^^
15 |
16 = note: for more information, see https://github.com/rust-lang/rust/issues/63063
17 = help: add `#![feature(type_alias_impl_trait)]` to the crate attributes to enable
18
19 error[E0658]: associated type defaults are unstable
20 --> $DIR/feature-gate-type_alias_impl_trait.rs:18:5
21 |
22 LL | type Assoc = impl Debug;
23 | ^^^^^^^^^^^^^^^^^^^^^^^^
24 |
25 = note: for more information, see https://github.com/rust-lang/rust/issues/29661
26 = help: add `#![feature(associated_type_defaults)]` to the crate attributes to enable
27
28 error[E0658]: `impl Trait` in type aliases is unstable
29 --> $DIR/feature-gate-type_alias_impl_trait.rs:18:18
30 |
31 LL | type Assoc = impl Debug;
32 | ^^^^^^^^^^
33 |
34 = note: for more information, see https://github.com/rust-lang/rust/issues/63063
35 = help: add `#![feature(type_alias_impl_trait)]` to the crate attributes to enable
36
37 error[E0658]: `impl Trait` in type aliases is unstable
38 --> $DIR/feature-gate-type_alias_impl_trait.rs:24:24
39 |
40 LL | type NestedFree = (Vec<impl Debug>, impl Debug, impl Iterator<Item = impl Debug>);
41 | ^^^^^^^^^^
42 |
43 = note: for more information, see https://github.com/rust-lang/rust/issues/63063
44 = help: add `#![feature(type_alias_impl_trait)]` to the crate attributes to enable
45
46 error[E0658]: `impl Trait` in type aliases is unstable
47 --> $DIR/feature-gate-type_alias_impl_trait.rs:24:37
48 |
49 LL | type NestedFree = (Vec<impl Debug>, impl Debug, impl Iterator<Item = impl Debug>);
50 | ^^^^^^^^^^
51 |
52 = note: for more information, see https://github.com/rust-lang/rust/issues/63063
53 = help: add `#![feature(type_alias_impl_trait)]` to the crate attributes to enable
54
55 error[E0658]: `impl Trait` in type aliases is unstable
56 --> $DIR/feature-gate-type_alias_impl_trait.rs:24:49
57 |
58 LL | type NestedFree = (Vec<impl Debug>, impl Debug, impl Iterator<Item = impl Debug>);
59 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
60 |
61 = note: for more information, see https://github.com/rust-lang/rust/issues/63063
62 = help: add `#![feature(type_alias_impl_trait)]` to the crate attributes to enable
63
64 error[E0658]: `impl Trait` in type aliases is unstable
65 --> $DIR/feature-gate-type_alias_impl_trait.rs:24:70
66 |
67 LL | type NestedFree = (Vec<impl Debug>, impl Debug, impl Iterator<Item = impl Debug>);
68 | ^^^^^^^^^^
69 |
70 = note: for more information, see https://github.com/rust-lang/rust/issues/63063
71 = help: add `#![feature(type_alias_impl_trait)]` to the crate attributes to enable
72
73 error[E0658]: `impl Trait` in type aliases is unstable
74 --> $DIR/feature-gate-type_alias_impl_trait.rs:34:21
75 |
76 LL | type Baa = (Vec<impl Debug>, impl Debug, impl Iterator<Item = impl Debug>);
77 | ^^^^^^^^^^
78 |
79 = note: for more information, see https://github.com/rust-lang/rust/issues/63063
80 = help: add `#![feature(type_alias_impl_trait)]` to the crate attributes to enable
81
82 error[E0658]: `impl Trait` in type aliases is unstable
83 --> $DIR/feature-gate-type_alias_impl_trait.rs:34:34
84 |
85 LL | type Baa = (Vec<impl Debug>, impl Debug, impl Iterator<Item = impl Debug>);
86 | ^^^^^^^^^^
87 |
88 = note: for more information, see https://github.com/rust-lang/rust/issues/63063
89 = help: add `#![feature(type_alias_impl_trait)]` to the crate attributes to enable
90
91 error[E0658]: `impl Trait` in type aliases is unstable
92 --> $DIR/feature-gate-type_alias_impl_trait.rs:34:46
93 |
94 LL | type Baa = (Vec<impl Debug>, impl Debug, impl Iterator<Item = impl Debug>);
95 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
96 |
97 = note: for more information, see https://github.com/rust-lang/rust/issues/63063
98 = help: add `#![feature(type_alias_impl_trait)]` to the crate attributes to enable
99
100 error[E0658]: `impl Trait` in type aliases is unstable
101 --> $DIR/feature-gate-type_alias_impl_trait.rs:34:67
102 |
103 LL | type Baa = (Vec<impl Debug>, impl Debug, impl Iterator<Item = impl Debug>);
104 | ^^^^^^^^^^
105 |
106 = note: for more information, see https://github.com/rust-lang/rust/issues/63063
107 = help: add `#![feature(type_alias_impl_trait)]` to the crate attributes to enable
108
109 error[E0562]: `impl Trait` not allowed outside of function and inherent method return types
110 --> $DIR/feature-gate-type_alias_impl_trait.rs:18:18
111 |
112 LL | type Assoc = impl Debug;
113 | ^^^^^^^^^^
114
115 error[E0562]: `impl Trait` not allowed outside of function and inherent method return types
116 --> $DIR/feature-gate-type_alias_impl_trait.rs:24:24
117 |
118 LL | type NestedFree = (Vec<impl Debug>, impl Debug, impl Iterator<Item = impl Debug>);
119 | ^^^^^^^^^^
120
121 error[E0562]: `impl Trait` not allowed outside of function and inherent method return types
122 --> $DIR/feature-gate-type_alias_impl_trait.rs:24:37
123 |
124 LL | type NestedFree = (Vec<impl Debug>, impl Debug, impl Iterator<Item = impl Debug>);
125 | ^^^^^^^^^^
126
127 error[E0562]: `impl Trait` not allowed outside of function and inherent method return types
128 --> $DIR/feature-gate-type_alias_impl_trait.rs:24:49
129 |
130 LL | type NestedFree = (Vec<impl Debug>, impl Debug, impl Iterator<Item = impl Debug>);
131 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
132
133 error[E0562]: `impl Trait` not allowed outside of function and inherent method return types
134 --> $DIR/feature-gate-type_alias_impl_trait.rs:34:21
135 |
136 LL | type Baa = (Vec<impl Debug>, impl Debug, impl Iterator<Item = impl Debug>);
137 | ^^^^^^^^^^
138
139 error[E0562]: `impl Trait` not allowed outside of function and inherent method return types
140 --> $DIR/feature-gate-type_alias_impl_trait.rs:34:34
141 |
142 LL | type Baa = (Vec<impl Debug>, impl Debug, impl Iterator<Item = impl Debug>);
143 | ^^^^^^^^^^
144
145 error[E0562]: `impl Trait` not allowed outside of function and inherent method return types
146 --> $DIR/feature-gate-type_alias_impl_trait.rs:34:46
147 |
148 LL | type Baa = (Vec<impl Debug>, impl Debug, impl Iterator<Item = impl Debug>);
149 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
150
151 error: aborting due to 19 previous errors
152
153 Some errors have detailed explanations: E0562, E0658.
154 For more information about an error, try `rustc --explain E0562`.