From 7a89a338239c0d551279b9183b9c2c1a1e7d7e74 Mon Sep 17 00:00:00 2001 From: Ayaz Hafiz Date: Tue, 16 Jun 2020 23:10:41 -0700 Subject: [PATCH] fixup! Note numeric literals that can never fit in an expected type --- src/test/ui/repeat_count.stderr | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/test/ui/repeat_count.stderr b/src/test/ui/repeat_count.stderr index 34641be22150f..2eab3ebc7687d 100644 --- a/src/test/ui/repeat_count.stderr +++ b/src/test/ui/repeat_count.stderr @@ -40,11 +40,7 @@ error[E0308]: mismatched types LL | let f = [0; -4_isize]; | ^^^^^^^^ expected `usize`, found `isize` | -note: `-4_isize` cannot fit into type `usize` - --> $DIR/repeat_count.rs:19:17 - | -LL | let f = [0; -4_isize]; - | ^^^^^^^^ + = note: `-4_isize` cannot fit into type `usize` error[E0308]: mismatched types --> $DIR/repeat_count.rs:22:23 @@ -52,11 +48,7 @@ error[E0308]: mismatched types LL | let f = [0_usize; -1_isize]; | ^^^^^^^^ expected `usize`, found `isize` | -note: `-1_isize` cannot fit into type `usize` - --> $DIR/repeat_count.rs:22:23 - | -LL | let f = [0_usize; -1_isize]; - | ^^^^^^^^ + = note: `-1_isize` cannot fit into type `usize` error[E0308]: mismatched types --> $DIR/repeat_count.rs:25:17