1 error: generic parameters may not be used in const operations
2 --> $DIR/const-arg-in-const-arg.rs:13:23
4 LL | let _: [u8; foo::<T>()];
5 | ^ cannot perform const operation using `T`
7 = note: type parameters may not be used in const expressions
8 = help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
10 error: generic parameters may not be used in const operations
11 --> $DIR/const-arg-in-const-arg.rs:14:23
13 LL | let _: [u8; bar::<N>()];
14 | ^ cannot perform const operation using `N`
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
19 error: generic parameters may not be used in const operations
20 --> $DIR/const-arg-in-const-arg.rs:24:23
22 LL | let _ = [0; bar::<N>()];
23 | ^ cannot perform const operation using `N`
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
28 error: generic parameters may not be used in const operations
29 --> $DIR/const-arg-in-const-arg.rs:29:24
31 LL | let _: Foo<{ foo::<T>() }>;
32 | ^ cannot perform const operation using `T`
34 = note: type parameters may not be used in const expressions
35 = help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
37 error: generic parameters may not be used in const operations
38 --> $DIR/const-arg-in-const-arg.rs:30:24
40 LL | let _: Foo<{ bar::<N>() }>;
41 | ^ cannot perform const operation using `N`
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
46 error: generic parameters may not be used in const operations
47 --> $DIR/const-arg-in-const-arg.rs:35:27
49 LL | let _ = Foo::<{ foo::<T>() }>;
50 | ^ cannot perform const operation using `T`
52 = note: type parameters may not be used in const expressions
53 = help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
55 error: generic parameters may not be used in const operations
56 --> $DIR/const-arg-in-const-arg.rs:36:27
58 LL | let _ = Foo::<{ bar::<N>() }>;
59 | ^ cannot perform const operation using `N`
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
64 error[E0658]: a non-static lifetime is not allowed in a `const`
65 --> $DIR/const-arg-in-const-arg.rs:15:23
67 LL | let _: [u8; faz::<'a>(&())];
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
73 error[E0658]: a non-static lifetime is not allowed in a `const`
74 --> $DIR/const-arg-in-const-arg.rs:16:23
76 LL | let _: [u8; baz::<'a>(&())];
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
82 error[E0658]: a non-static lifetime is not allowed in a `const`
83 --> $DIR/const-arg-in-const-arg.rs:17:23
85 LL | let _: [u8; faz::<'b>(&())];
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
91 error[E0658]: a non-static lifetime is not allowed in a `const`
92 --> $DIR/const-arg-in-const-arg.rs:18:23
94 LL | let _: [u8; baz::<'b>(&())];
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
100 error[E0658]: a non-static lifetime is not allowed in a `const`
101 --> $DIR/const-arg-in-const-arg.rs:25:23
103 LL | let _ = [0; faz::<'a>(&())];
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
109 error[E0658]: a non-static lifetime is not allowed in a `const`
110 --> $DIR/const-arg-in-const-arg.rs:26:23
112 LL | let _ = [0; baz::<'a>(&())];
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
118 error[E0658]: a non-static lifetime is not allowed in a `const`
119 --> $DIR/const-arg-in-const-arg.rs:27:23
121 LL | let _ = [0; faz::<'b>(&())];
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
127 error[E0658]: a non-static lifetime is not allowed in a `const`
128 --> $DIR/const-arg-in-const-arg.rs:28:23
130 LL | let _ = [0; baz::<'b>(&())];
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
136 error[E0658]: a non-static lifetime is not allowed in a `const`
137 --> $DIR/const-arg-in-const-arg.rs:31:24
139 LL | let _: Foo<{ faz::<'a>(&()) }>;
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
145 error[E0658]: a non-static lifetime is not allowed in a `const`
146 --> $DIR/const-arg-in-const-arg.rs:32:24
148 LL | let _: Foo<{ baz::<'a>(&()) }>;
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
154 error[E0658]: a non-static lifetime is not allowed in a `const`
155 --> $DIR/const-arg-in-const-arg.rs:33:24
157 LL | let _: Foo<{ faz::<'b>(&()) }>;
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
163 error[E0658]: a non-static lifetime is not allowed in a `const`
164 --> $DIR/const-arg-in-const-arg.rs:34:24
166 LL | let _: Foo<{ baz::<'b>(&()) }>;
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
172 error[E0658]: a non-static lifetime is not allowed in a `const`
173 --> $DIR/const-arg-in-const-arg.rs:37:27
175 LL | let _ = Foo::<{ faz::<'a>(&()) }>;
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
181 error[E0658]: a non-static lifetime is not allowed in a `const`
182 --> $DIR/const-arg-in-const-arg.rs:38:27
184 LL | let _ = Foo::<{ baz::<'a>(&()) }>;
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
190 error[E0658]: a non-static lifetime is not allowed in a `const`
191 --> $DIR/const-arg-in-const-arg.rs:39:27
193 LL | let _ = Foo::<{ faz::<'b>(&()) }>;
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
199 error[E0658]: a non-static lifetime is not allowed in a `const`
200 --> $DIR/const-arg-in-const-arg.rs:40:27
202 LL | let _ = Foo::<{ baz::<'b>(&()) }>;
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
208 error: aborting due to 23 previous errors
210 For more information about this error, try `rustc --explain E0658`.