rust/src/test/ui/non-constant-expr-for-arr-len.stderr
Guillaume Gomez 2e104a77cf update tests
2018-03-14 00:53:24 +01:00

10 lines
304 B
Plaintext

error[E0435]: attempt to use a non-constant value in a constant
--> $DIR/non-constant-expr-for-arr-len.rs:15:22
|
LL | let _x = [0; n];
| ^ non-constant value
error: aborting due to previous error
For more information about this error, try `rustc --explain E0435`.