rust/tests/ui/const-generics/issues/issue-67375.full.stderr

13 lines
390 B
Plaintext
Raw Normal View History

error: overly complex generic constant
--> $DIR/issue-67375.rs:7:17
2020-10-03 11:00:18 -05:00
|
LL | inner: [(); { [|_: &T| {}; 0].len() }],
2021-09-16 15:01:22 -05:00
| ^^---------------------^^
2021-09-06 12:41:05 -05:00
| |
| pointer casts are not allowed in generic constants
2020-10-03 11:00:18 -05:00
|
= help: consider moving this anonymous constant into a `const` function
2020-10-03 11:00:18 -05:00
2021-10-12 15:47:34 -05:00
error: aborting due to previous error
2020-10-03 11:00:18 -05:00