diff options
| author | Boxy <supbscripter@gmail.com> | 2023-05-02 18:04:52 +0100 |
|---|---|---|
| committer | Boxy <supbscripter@gmail.com> | 2023-05-04 11:22:40 +0100 |
| commit | c04106f9f13cb6e8f73aff8ea0888e94631dc47a (patch) | |
| tree | ac257300aa7b7dd2b51df6684aa9e8fd01f85c60 /tests/ui/const-generics/sneaky-array-repeat-expr.stderr | |
| parent | 6f8c0557e0b73c73a8a7163a15f4a5a3feca7d5c (diff) | |
| download | rust-c04106f9f13cb6e8f73aff8ea0888e94631dc47a.tar.gz rust-c04106f9f13cb6e8f73aff8ea0888e94631dc47a.zip | |
check array type of repeat exprs is wf
Diffstat (limited to 'tests/ui/const-generics/sneaky-array-repeat-expr.stderr')
| -rw-r--r-- | tests/ui/const-generics/sneaky-array-repeat-expr.stderr | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/tests/ui/const-generics/sneaky-array-repeat-expr.stderr b/tests/ui/const-generics/sneaky-array-repeat-expr.stderr index 5c77375d399..e532f27a10d 100644 --- a/tests/ui/const-generics/sneaky-array-repeat-expr.stderr +++ b/tests/ui/const-generics/sneaky-array-repeat-expr.stderr @@ -7,12 +7,28 @@ LL | let bar = [(); <()>::Assoc]; = note: this may fail depending on what value the parameter takes error: constant expression depends on a generic parameter - --> $DIR/sneaky-array-repeat-expr.rs:25:21 + --> $DIR/sneaky-array-repeat-expr.rs:11:15 + | +LL | let bar = [(); <()>::Assoc]; + | ^^^^^^^^^^^^^^^^^ + | + = note: this may fail depending on what value the parameter takes + +error: constant expression depends on a generic parameter + --> $DIR/sneaky-array-repeat-expr.rs:26:21 | LL | let bar2 = [(); <()>::Assoc2]; | ^^^^^^^^^^^^ | = note: this may fail depending on what value the parameter takes -error: aborting due to 2 previous errors +error: constant expression depends on a generic parameter + --> $DIR/sneaky-array-repeat-expr.rs:26:16 + | +LL | let bar2 = [(); <()>::Assoc2]; + | ^^^^^^^^^^^^^^^^^^ + | + = note: this may fail depending on what value the parameter takes + +error: aborting due to 4 previous errors |
