about summary refs log tree commit diff
path: root/src/test/ui/half-open-range-patterns
diff options
context:
space:
mode:
authorDavid Tolnay <dtolnay@gmail.com>2022-03-26 13:35:58 -0700
committerDavid Tolnay <dtolnay@gmail.com>2022-03-27 04:49:10 -0700
commit2ac9efbe950419979050ff14feb7fb89df4806a0 (patch)
tree34f9834640f08cb7c178145550a235ea663f3d1b /src/test/ui/half-open-range-patterns
parent100f12d17026fccfc5d80527b5976dd66b228b13 (diff)
downloadrust-2ac9efbe950419979050ff14feb7fb89df4806a0.tar.gz
rust-2ac9efbe950419979050ff14feb7fb89df4806a0.zip
Debug print char 0 as '\0' rather than '\u{0}'
Diffstat (limited to 'src/test/ui/half-open-range-patterns')
-rw-r--r--src/test/ui/half-open-range-patterns/half-open-range-pats-exhaustive-fail.stderr6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/ui/half-open-range-patterns/half-open-range-pats-exhaustive-fail.stderr b/src/test/ui/half-open-range-patterns/half-open-range-pats-exhaustive-fail.stderr
index c2c77290c43..7a2441047b5 100644
--- a/src/test/ui/half-open-range-patterns/half-open-range-pats-exhaustive-fail.stderr
+++ b/src/test/ui/half-open-range-patterns/half-open-range-pats-exhaustive-fail.stderr
@@ -50,17 +50,17 @@ LL ~         match $s { $($t)+ => {}
 LL ~         '\u{10fffe}'..='\u{10ffff}' => todo!() }
    |
 
-error[E0004]: non-exhaustive patterns: `'\u{0}'` not covered
+error[E0004]: non-exhaustive patterns: `'\0'` not covered
   --> $DIR/half-open-range-pats-exhaustive-fail.rs:28:8
    |
 LL |     m!('a', ALMOST_MIN..);
-   |        ^^^ pattern `'\u{0}'` not covered
+   |        ^^^ pattern `'\0'` not covered
    |
    = note: the matched value is of type `char`
 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
    |
 LL ~         match $s { $($t)+ => {}
-LL ~         '\u{0}' => todo!() }
+LL ~         '\0' => todo!() }
    |
 
 error[E0004]: non-exhaustive patterns: `'\u{10ffff}'` not covered