diff options
| author | varkor <github@varkor.com> | 2019-05-25 21:00:29 +0100 |
|---|---|---|
| committer | varkor <github@varkor.com> | 2019-05-28 21:35:20 +0100 |
| commit | f13317ca2ee16163ee121fbdf28eb2184840b6dd (patch) | |
| tree | 690a5021c4e7d193dc328396db1417c73cbedafe /src/test/ui/consts | |
| parent | f865b7dda43cd8e453ec1ce485d9155e5591248f (diff) | |
| download | rust-f13317ca2ee16163ee121fbdf28eb2184840b6dd.tar.gz rust-f13317ca2ee16163ee121fbdf28eb2184840b6dd.zip | |
Use Display rather than Debug printing for const mismatch
Diffstat (limited to 'src/test/ui/consts')
| -rw-r--r-- | src/test/ui/consts/const-array-oob-arith.stderr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/consts/const-array-oob-arith.stderr b/src/test/ui/consts/const-array-oob-arith.stderr index 745d5904041..ded8207cdef 100644 --- a/src/test/ui/consts/const-array-oob-arith.stderr +++ b/src/test/ui/consts/const-array-oob-arith.stderr @@ -2,7 +2,7 @@ error[E0308]: mismatched types --> $DIR/const-array-oob-arith.rs:7:45 | LL | const BLUB: [i32; (ARR[0] - 40) as usize] = [5]; - | ^^^ expected `Const { ty: usize, val: Scalar(0x0000000000000002) }`, found `Const { ty: usize, val: Scalar(0x0000000000000001) }` + | ^^^ expected `2usize`, found `1usize` | = note: expected type `[i32; 2]` found type `[i32; 1]` @@ -11,7 +11,7 @@ error[E0308]: mismatched types --> $DIR/const-array-oob-arith.rs:8:44 | LL | const BOO: [i32; (ARR[0] - 41) as usize] = [5, 99]; - | ^^^^^^^ expected `Const { ty: usize, val: Scalar(0x0000000000000001) }`, found `Const { ty: usize, val: Scalar(0x0000000000000002) }` + | ^^^^^^^ expected `1usize`, found `2usize` | = note: expected type `[i32; 1]` found type `[i32; 2]` |
