]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/const-arg-in-const-arg.min.stderr
Merge commit '97e504549371d7640cf011d266e3c17394fdddac' into sync_cg_clif-2021-12-20
[rust.git] / src / test / ui / const-generics / const-arg-in-const-arg.min.stderr
1 error: generic parameters may not be used in const operations
2   --> $DIR/const-arg-in-const-arg.rs:13:23
3    |
4 LL |     let _: [u8; foo::<T>()];
5    |                       ^ cannot perform const operation using `T`
6    |
7    = note: type parameters may not be used in const expressions
8    = help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
9
10 error: generic parameters may not be used in const operations
11   --> $DIR/const-arg-in-const-arg.rs:14:23
12    |
13 LL |     let _: [u8; bar::<N>()];
14    |                       ^ cannot perform const operation using `N`
15    |
16    = help: const parameters may only be used as standalone arguments, i.e. `N`
17    = help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
18
19 error: generic parameters may not be used in const operations
20   --> $DIR/const-arg-in-const-arg.rs:24:23
21    |
22 LL |     let _ = [0; bar::<N>()];
23    |                       ^ cannot perform const operation using `N`
24    |
25    = help: const parameters may only be used as standalone arguments, i.e. `N`
26    = help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
27
28 error: generic parameters may not be used in const operations
29   --> $DIR/const-arg-in-const-arg.rs:29:24
30    |
31 LL |     let _: Foo<{ foo::<T>() }>;
32    |                        ^ cannot perform const operation using `T`
33    |
34    = note: type parameters may not be used in const expressions
35    = help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
36
37 error: generic parameters may not be used in const operations
38   --> $DIR/const-arg-in-const-arg.rs:30:24
39    |
40 LL |     let _: Foo<{ bar::<N>() }>;
41    |                        ^ cannot perform const operation using `N`
42    |
43    = help: const parameters may only be used as standalone arguments, i.e. `N`
44    = help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
45
46 error: generic parameters may not be used in const operations
47   --> $DIR/const-arg-in-const-arg.rs:35:27
48    |
49 LL |     let _ = Foo::<{ foo::<T>() }>;
50    |                           ^ cannot perform const operation using `T`
51    |
52    = note: type parameters may not be used in const expressions
53    = help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
54
55 error: generic parameters may not be used in const operations
56   --> $DIR/const-arg-in-const-arg.rs:36:27
57    |
58 LL |     let _ = Foo::<{ bar::<N>() }>;
59    |                           ^ cannot perform const operation using `N`
60    |
61    = help: const parameters may only be used as standalone arguments, i.e. `N`
62    = help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
63
64 error[E0658]: a non-static lifetime is not allowed in a `const`
65   --> $DIR/const-arg-in-const-arg.rs:15:23
66    |
67 LL |     let _: [u8; faz::<'a>(&())];
68    |                       ^^
69    |
70    = note: see issue #76560 <https://github.com/rust-lang/rust/issues/76560> for more information
71    = help: add `#![feature(generic_const_exprs)]` to the crate attributes to enable
72
73 error[E0658]: a non-static lifetime is not allowed in a `const`
74   --> $DIR/const-arg-in-const-arg.rs:16:23
75    |
76 LL |     let _: [u8; baz::<'a>(&())];
77    |                       ^^
78    |
79    = note: see issue #76560 <https://github.com/rust-lang/rust/issues/76560> for more information
80    = help: add `#![feature(generic_const_exprs)]` to the crate attributes to enable
81
82 error[E0658]: a non-static lifetime is not allowed in a `const`
83   --> $DIR/const-arg-in-const-arg.rs:17:23
84    |
85 LL |     let _: [u8; faz::<'b>(&())];
86    |                       ^^
87    |
88    = note: see issue #76560 <https://github.com/rust-lang/rust/issues/76560> for more information
89    = help: add `#![feature(generic_const_exprs)]` to the crate attributes to enable
90
91 error[E0658]: a non-static lifetime is not allowed in a `const`
92   --> $DIR/const-arg-in-const-arg.rs:18:23
93    |
94 LL |     let _: [u8; baz::<'b>(&())];
95    |                       ^^
96    |
97    = note: see issue #76560 <https://github.com/rust-lang/rust/issues/76560> for more information
98    = help: add `#![feature(generic_const_exprs)]` to the crate attributes to enable
99
100 error[E0658]: a non-static lifetime is not allowed in a `const`
101   --> $DIR/const-arg-in-const-arg.rs:25:23
102    |
103 LL |     let _ = [0; faz::<'a>(&())];
104    |                       ^^
105    |
106    = note: see issue #76560 <https://github.com/rust-lang/rust/issues/76560> for more information
107    = help: add `#![feature(generic_const_exprs)]` to the crate attributes to enable
108
109 error[E0658]: a non-static lifetime is not allowed in a `const`
110   --> $DIR/const-arg-in-const-arg.rs:26:23
111    |
112 LL |     let _ = [0; baz::<'a>(&())];
113    |                       ^^
114    |
115    = note: see issue #76560 <https://github.com/rust-lang/rust/issues/76560> for more information
116    = help: add `#![feature(generic_const_exprs)]` to the crate attributes to enable
117
118 error[E0658]: a non-static lifetime is not allowed in a `const`
119   --> $DIR/const-arg-in-const-arg.rs:27:23
120    |
121 LL |     let _ = [0; faz::<'b>(&())];
122    |                       ^^
123    |
124    = note: see issue #76560 <https://github.com/rust-lang/rust/issues/76560> for more information
125    = help: add `#![feature(generic_const_exprs)]` to the crate attributes to enable
126
127 error[E0658]: a non-static lifetime is not allowed in a `const`
128   --> $DIR/const-arg-in-const-arg.rs:28:23
129    |
130 LL |     let _ = [0; baz::<'b>(&())];
131    |                       ^^
132    |
133    = note: see issue #76560 <https://github.com/rust-lang/rust/issues/76560> for more information
134    = help: add `#![feature(generic_const_exprs)]` to the crate attributes to enable
135
136 error[E0658]: a non-static lifetime is not allowed in a `const`
137   --> $DIR/const-arg-in-const-arg.rs:31:24
138    |
139 LL |     let _: Foo<{ faz::<'a>(&()) }>;
140    |                        ^^
141    |
142    = note: see issue #76560 <https://github.com/rust-lang/rust/issues/76560> for more information
143    = help: add `#![feature(generic_const_exprs)]` to the crate attributes to enable
144
145 error[E0658]: a non-static lifetime is not allowed in a `const`
146   --> $DIR/const-arg-in-const-arg.rs:32:24
147    |
148 LL |     let _: Foo<{ baz::<'a>(&()) }>;
149    |                        ^^
150    |
151    = note: see issue #76560 <https://github.com/rust-lang/rust/issues/76560> for more information
152    = help: add `#![feature(generic_const_exprs)]` to the crate attributes to enable
153
154 error[E0658]: a non-static lifetime is not allowed in a `const`
155   --> $DIR/const-arg-in-const-arg.rs:33:24
156    |
157 LL |     let _: Foo<{ faz::<'b>(&()) }>;
158    |                        ^^
159    |
160    = note: see issue #76560 <https://github.com/rust-lang/rust/issues/76560> for more information
161    = help: add `#![feature(generic_const_exprs)]` to the crate attributes to enable
162
163 error[E0658]: a non-static lifetime is not allowed in a `const`
164   --> $DIR/const-arg-in-const-arg.rs:34:24
165    |
166 LL |     let _: Foo<{ baz::<'b>(&()) }>;
167    |                        ^^
168    |
169    = note: see issue #76560 <https://github.com/rust-lang/rust/issues/76560> for more information
170    = help: add `#![feature(generic_const_exprs)]` to the crate attributes to enable
171
172 error[E0658]: a non-static lifetime is not allowed in a `const`
173   --> $DIR/const-arg-in-const-arg.rs:37:27
174    |
175 LL |     let _ = Foo::<{ faz::<'a>(&()) }>;
176    |                           ^^
177    |
178    = note: see issue #76560 <https://github.com/rust-lang/rust/issues/76560> for more information
179    = help: add `#![feature(generic_const_exprs)]` to the crate attributes to enable
180
181 error[E0658]: a non-static lifetime is not allowed in a `const`
182   --> $DIR/const-arg-in-const-arg.rs:38:27
183    |
184 LL |     let _ = Foo::<{ baz::<'a>(&()) }>;
185    |                           ^^
186    |
187    = note: see issue #76560 <https://github.com/rust-lang/rust/issues/76560> for more information
188    = help: add `#![feature(generic_const_exprs)]` to the crate attributes to enable
189
190 error[E0658]: a non-static lifetime is not allowed in a `const`
191   --> $DIR/const-arg-in-const-arg.rs:39:27
192    |
193 LL |     let _ = Foo::<{ faz::<'b>(&()) }>;
194    |                           ^^
195    |
196    = note: see issue #76560 <https://github.com/rust-lang/rust/issues/76560> for more information
197    = help: add `#![feature(generic_const_exprs)]` to the crate attributes to enable
198
199 error[E0658]: a non-static lifetime is not allowed in a `const`
200   --> $DIR/const-arg-in-const-arg.rs:40:27
201    |
202 LL |     let _ = Foo::<{ baz::<'b>(&()) }>;
203    |                           ^^
204    |
205    = note: see issue #76560 <https://github.com/rust-lang/rust/issues/76560> for more information
206    = help: add `#![feature(generic_const_exprs)]` to the crate attributes to enable
207
208 error: aborting due to 23 previous errors
209
210 For more information about this error, try `rustc --explain E0658`.