1 error: overly complex generic constant
2 --> $DIR/dependence_lint.rs:16:9
4 LL | [0; if false { size_of::<T>() } else { 3 }]; // lint on stable, error with gce
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ control flow is not supported in generic constants
7 = help: consider moving this anonymous constant into a `const` function
9 error: overly complex generic constant
10 --> $DIR/dependence_lint.rs:20:17
12 LL | let _: [u8; if true { size_of::<T>() } else { 3 }]; // error on stable, error with gce
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ control flow is not supported in generic constants
15 = help: consider moving this anonymous constant into a `const` function
17 error: unconstrained generic constant
18 --> $DIR/dependence_lint.rs:13:12
20 LL | let _: [u8; size_of::<*mut T>()]; // error on stable, error with gce
21 | ^^^^^^^^^^^^^^^^^^^^^^^^^
23 = help: try adding a `where` bound using this expression: `where [(); size_of::<*mut T>()]:`
25 error: unconstrained generic constant
26 --> $DIR/dependence_lint.rs:9:9
28 LL | [0; size_of::<*mut T>()]; // lint on stable, error with `generic_const_exprs`
31 = help: try adding a `where` bound using this expression: `where [(); size_of::<*mut T>()]:`
33 error: aborting due to 4 previous errors