1 error: generic parameters may not be used in const operations
2 --> $DIR/const-arg-in-const-arg.rs:14: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
9 error: generic parameters may not be used in const operations
10 --> $DIR/const-arg-in-const-arg.rs:15:23
12 LL | let _: [u8; bar::<N>()];
13 | ^ cannot perform const operation using `N`
15 = help: const parameters may only be used as standalone arguments, i.e. `N`
17 error: generic parameters may not be used in const operations
18 --> $DIR/const-arg-in-const-arg.rs:25:23
20 LL | let _ = [0; bar::<N>()];
21 | ^ cannot perform const operation using `N`
23 = help: const parameters may only be used as standalone arguments, i.e. `N`
25 error: generic parameters may not be used in const operations
26 --> $DIR/const-arg-in-const-arg.rs:30:24
28 LL | let _: Foo<{ foo::<T>() }>;
29 | ^ cannot perform const operation using `T`
31 = note: type parameters may not be used in const expressions
33 error: generic parameters may not be used in const operations
34 --> $DIR/const-arg-in-const-arg.rs:31:24
36 LL | let _: Foo<{ bar::<N>() }>;
37 | ^ cannot perform const operation using `N`
39 = help: const parameters may only be used as standalone arguments, i.e. `N`
41 error: generic parameters may not be used in const operations
42 --> $DIR/const-arg-in-const-arg.rs:36:27
44 LL | let _ = Foo::<{ foo::<T>() }>;
45 | ^ cannot perform const operation using `T`
47 = note: type parameters may not be used in const expressions
49 error: generic parameters may not be used in const operations
50 --> $DIR/const-arg-in-const-arg.rs:37:27
52 LL | let _ = Foo::<{ bar::<N>() }>;
53 | ^ cannot perform const operation using `N`
55 = help: const parameters may only be used as standalone arguments, i.e. `N`
57 error[E0658]: a non-static lifetime is not allowed in a `const`
58 --> $DIR/const-arg-in-const-arg.rs:16:23
60 LL | let _: [u8; faz::<'a>(&())];
63 = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
64 = help: add `#![feature(const_generics)]` to the crate attributes to enable
66 error[E0658]: a non-static lifetime is not allowed in a `const`
67 --> $DIR/const-arg-in-const-arg.rs:17:23
69 LL | let _: [u8; baz::<'a>(&())];
72 = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
73 = help: add `#![feature(const_generics)]` to the crate attributes to enable
75 error[E0658]: a non-static lifetime is not allowed in a `const`
76 --> $DIR/const-arg-in-const-arg.rs:18:23
78 LL | let _: [u8; faz::<'b>(&())];
81 = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
82 = help: add `#![feature(const_generics)]` to the crate attributes to enable
84 error[E0658]: a non-static lifetime is not allowed in a `const`
85 --> $DIR/const-arg-in-const-arg.rs:19:23
87 LL | let _: [u8; baz::<'b>(&())];
90 = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
91 = help: add `#![feature(const_generics)]` to the crate attributes to enable
93 error[E0658]: a non-static lifetime is not allowed in a `const`
94 --> $DIR/const-arg-in-const-arg.rs:26:23
96 LL | let _ = [0; faz::<'a>(&())];
99 = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
100 = help: add `#![feature(const_generics)]` to the crate attributes to enable
102 error[E0658]: a non-static lifetime is not allowed in a `const`
103 --> $DIR/const-arg-in-const-arg.rs:27:23
105 LL | let _ = [0; baz::<'a>(&())];
108 = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
109 = help: add `#![feature(const_generics)]` to the crate attributes to enable
111 error[E0658]: a non-static lifetime is not allowed in a `const`
112 --> $DIR/const-arg-in-const-arg.rs:28:23
114 LL | let _ = [0; faz::<'b>(&())];
117 = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
118 = help: add `#![feature(const_generics)]` to the crate attributes to enable
120 error[E0658]: a non-static lifetime is not allowed in a `const`
121 --> $DIR/const-arg-in-const-arg.rs:29:23
123 LL | let _ = [0; baz::<'b>(&())];
126 = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
127 = help: add `#![feature(const_generics)]` to the crate attributes to enable
129 error[E0658]: a non-static lifetime is not allowed in a `const`
130 --> $DIR/const-arg-in-const-arg.rs:32:24
132 LL | let _: Foo<{ faz::<'a>(&()) }>;
135 = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
136 = help: add `#![feature(const_generics)]` to the crate attributes to enable
138 error[E0658]: a non-static lifetime is not allowed in a `const`
139 --> $DIR/const-arg-in-const-arg.rs:33:24
141 LL | let _: Foo<{ baz::<'a>(&()) }>;
144 = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
145 = help: add `#![feature(const_generics)]` to the crate attributes to enable
147 error[E0658]: a non-static lifetime is not allowed in a `const`
148 --> $DIR/const-arg-in-const-arg.rs:34:24
150 LL | let _: Foo<{ faz::<'b>(&()) }>;
153 = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
154 = help: add `#![feature(const_generics)]` to the crate attributes to enable
156 error[E0658]: a non-static lifetime is not allowed in a `const`
157 --> $DIR/const-arg-in-const-arg.rs:35:24
159 LL | let _: Foo<{ baz::<'b>(&()) }>;
162 = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
163 = help: add `#![feature(const_generics)]` to the crate attributes to enable
165 error[E0658]: a non-static lifetime is not allowed in a `const`
166 --> $DIR/const-arg-in-const-arg.rs:38:27
168 LL | let _ = Foo::<{ faz::<'a>(&()) }>;
171 = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
172 = help: add `#![feature(const_generics)]` to the crate attributes to enable
174 error[E0658]: a non-static lifetime is not allowed in a `const`
175 --> $DIR/const-arg-in-const-arg.rs:39:27
177 LL | let _ = Foo::<{ baz::<'a>(&()) }>;
180 = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
181 = help: add `#![feature(const_generics)]` to the crate attributes to enable
183 error[E0658]: a non-static lifetime is not allowed in a `const`
184 --> $DIR/const-arg-in-const-arg.rs:40:27
186 LL | let _ = Foo::<{ faz::<'b>(&()) }>;
189 = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
190 = help: add `#![feature(const_generics)]` to the crate attributes to enable
192 error[E0658]: a non-static lifetime is not allowed in a `const`
193 --> $DIR/const-arg-in-const-arg.rs:41:27
195 LL | let _ = Foo::<{ baz::<'b>(&()) }>;
198 = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
199 = help: add `#![feature(const_generics)]` to the crate attributes to enable
201 error: aborting due to 23 previous errors
203 For more information about this error, try `rustc --explain E0658`.