]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/const_evaluatable_checked/unused_expr.stderr
Auto merge of #86155 - alexcrichton:abort-on-unwind, r=nikomatsakis
[rust.git] / src / test / ui / const-generics / const_evaluatable_checked / unused_expr.stderr
1 error: overly complex generic constant
2   --> $DIR/unused_expr.rs:4:34
3    |
4 LL | fn add<const N: usize>() -> [u8; { N + 1; 5 }] {
5    |                                  ^^-----^^^^^
6    |                                    |
7    |                                    dead code
8    |
9    = help: consider moving this anonymous constant into a `const` function
10
11 error: overly complex generic constant
12   --> $DIR/unused_expr.rs:9:34
13    |
14 LL | fn div<const N: usize>() -> [u8; { N / 1; 5 }] {
15    |                                  ^^-----^^^^^
16    |                                    |
17    |                                    dead code
18    |
19    = help: consider moving this anonymous constant into a `const` function
20
21 error: overly complex generic constant
22   --> $DIR/unused_expr.rs:16:38
23    |
24 LL | fn fn_call<const N: usize>() -> [u8; { foo(N); 5 }] {
25    |                                      ^^------^^^^^
26    |                                        |
27    |                                        dead code
28    |
29    = help: consider moving this anonymous constant into a `const` function
30
31 error: aborting due to 3 previous errors
32