]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/issues/issue-67375.full.stderr
Rollup merge of #89876 - AlexApps99:const_ops, r=oli-obk
[rust.git] / src / test / ui / const-generics / issues / issue-67375.full.stderr
1 error: overly complex generic constant
2   --> $DIR/issue-67375.rs:7:17
3    |
4 LL |     inner: [(); { [|_: &T| {}; 0].len() }],
5    |                 ^^---------------------^^
6    |                   |
7    |                   pointer casts are not allowed in generic constants
8    |
9    = help: consider moving this anonymous constant into a `const` function
10
11 error: aborting due to previous error
12