error: constant expression depends on a generic parameter --> $DIR/complex-generic-default-expr.rs:6:34 | LL | struct Foo; | ^ | = note: this may fail depending on what value the parameter takes error: constant expression depends on a generic parameter --> $DIR/complex-generic-default-expr.rs:10:21 | LL | struct Bar() }>(T); | ^^^^^^^^^ | = note: this may fail depending on what value the parameter takes error: aborting due to 2 previous errors