diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2025-04-05 19:19:56 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2025-04-08 23:06:31 +0300 |
| commit | b3f75353a237f3623483c1e237be480140a8c3e1 (patch) | |
| tree | a769f4d38cf7d807a27d8685f26d77db3b0b5f91 /tests/ui/consts/const-array-oob-arith.rs | |
| parent | d4f880f8ce832cd7560bb2f1ebc34f967055ffd7 (diff) | |
| download | rust-b3f75353a237f3623483c1e237be480140a8c3e1.tar.gz rust-b3f75353a237f3623483c1e237be480140a8c3e1.zip | |
UI tests: add missing diagnostic kinds where possible
Diffstat (limited to 'tests/ui/consts/const-array-oob-arith.rs')
| -rw-r--r-- | tests/ui/consts/const-array-oob-arith.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/consts/const-array-oob-arith.rs b/tests/ui/consts/const-array-oob-arith.rs index 0f6e76768cd..8e5c56e0ea8 100644 --- a/tests/ui/consts/const-array-oob-arith.rs +++ b/tests/ui/consts/const-array-oob-arith.rs @@ -4,10 +4,10 @@ const VAL: i32 = ARR[IDX]; const BONG: [i32; (ARR[0] - 41) as usize] = [5]; const BLUB: [i32; (ARR[0] - 40) as usize] = [5]; //~^ ERROR: mismatched types -//~| expected an array +//~| NOTE expected an array const BOO: [i32; (ARR[0] - 41) as usize] = [5, 99]; //~^ ERROR: mismatched types -//~| expected an array +//~| NOTE expected an array fn main() { let _ = VAL; |
