]> git.proxmox.com Git - rustc.git/blame - src/test/ui/feature-gates/feature-gate-type_alias_impl_trait.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / feature-gates / feature-gate-type_alias_impl_trait.stderr
CommitLineData
416331ca 1error[E0658]: `impl Trait` in type aliases is unstable
60c5eb7d 2 --> $DIR/feature-gate-type_alias_impl_trait.rs:3:12
416331ca 3 |
60c5eb7d
XL
4LL | type Foo = impl Debug;
5 | ^^^^^^^^^^
416331ca
XL
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
10error[E0658]: `impl Trait` in type aliases is unstable
60c5eb7d 11 --> $DIR/feature-gate-type_alias_impl_trait.rs:11:16
416331ca 12 |
60c5eb7d
XL
13LL | type Baa = impl Debug;
14 | ^^^^^^^^^^
416331ca
XL
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
60c5eb7d
XL
19error[E0658]: `impl Trait` in type aliases is unstable
20 --> $DIR/feature-gate-type_alias_impl_trait.rs:18:18
21 |
22LL | type Assoc = impl Debug;
23 | ^^^^^^^^^^
24 |
25 = note: for more information, see https://github.com/rust-lang/rust/issues/63063
26 = help: add `#![feature(type_alias_impl_trait)]` to the crate attributes to enable
27
28error[E0658]: associated type defaults are unstable
29 --> $DIR/feature-gate-type_alias_impl_trait.rs:18:5
30 |
31LL | type Assoc = impl Debug;
32 | ^^^^^^^^^^^^^^^^^^^^^^^^
33 |
34 = note: for more information, see https://github.com/rust-lang/rust/issues/29661
35 = help: add `#![feature(associated_type_defaults)]` to the crate attributes to enable
36
37error[E0658]: `impl Trait` in type aliases is unstable
38 --> $DIR/feature-gate-type_alias_impl_trait.rs:24:24
39 |
40LL | 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
46error[E0658]: `impl Trait` in type aliases is unstable
47 --> $DIR/feature-gate-type_alias_impl_trait.rs:24:37
48 |
49LL | 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
55error[E0658]: `impl Trait` in type aliases is unstable
56 --> $DIR/feature-gate-type_alias_impl_trait.rs:24:49
57 |
58LL | 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
64error[E0658]: `impl Trait` in type aliases is unstable
65 --> $DIR/feature-gate-type_alias_impl_trait.rs:24:70
66 |
67LL | 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
73error[E0658]: `impl Trait` in type aliases is unstable
74 --> $DIR/feature-gate-type_alias_impl_trait.rs:34:21
75 |
76LL | 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
82error[E0658]: `impl Trait` in type aliases is unstable
83 --> $DIR/feature-gate-type_alias_impl_trait.rs:34:34
84 |
85LL | 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
91error[E0658]: `impl Trait` in type aliases is unstable
92 --> $DIR/feature-gate-type_alias_impl_trait.rs:34:46
93 |
94LL | 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
100error[E0658]: `impl Trait` in type aliases is unstable
101 --> $DIR/feature-gate-type_alias_impl_trait.rs:34:67
102 |
103LL | 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
109error[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 |
112LL | type Assoc = impl Debug;
113 | ^^^^^^^^^^
114
115error[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 |
118LL | type NestedFree = (Vec<impl Debug>, impl Debug, impl Iterator<Item = impl Debug>);
119 | ^^^^^^^^^^
120
121error[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 |
124LL | type NestedFree = (Vec<impl Debug>, impl Debug, impl Iterator<Item = impl Debug>);
125 | ^^^^^^^^^^
126
127error[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 |
130LL | type NestedFree = (Vec<impl Debug>, impl Debug, impl Iterator<Item = impl Debug>);
131 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
132
133error[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 |
136LL | type Baa = (Vec<impl Debug>, impl Debug, impl Iterator<Item = impl Debug>);
137 | ^^^^^^^^^^
138
139error[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 |
142LL | type Baa = (Vec<impl Debug>, impl Debug, impl Iterator<Item = impl Debug>);
143 | ^^^^^^^^^^
144
145error[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 |
148LL | type Baa = (Vec<impl Debug>, impl Debug, impl Iterator<Item = impl Debug>);
149 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
150
151error: aborting due to 19 previous errors
416331ca 152
60c5eb7d
XL
153Some errors have detailed explanations: E0562, E0658.
154For more information about an error, try `rustc --explain E0562`.