1 error: argument 1 is required to be a constant
2 --> $DIR/rustc-args-required-const.rs:33:5
4 LL | foo(a); //~ ERROR: argument 1 is required to be a constant
7 error: argument 2 is required to be a constant
8 --> $DIR/rustc-args-required-const.rs:35:5
10 LL | bar(a, a); //~ ERROR: argument 2 is required to be a constant
13 error: aborting due to 2 previous errors