From bef69a116e0042fbd92dfa08de68da73765f4c14 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Sun, 20 Mar 2016 22:07:49 -0700 Subject: [PATCH] std: Add regression test for #32074 Just to make sure we don't accidentally break this in the future. --- src/libstd/ascii.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/libstd/ascii.rs b/src/libstd/ascii.rs index 031a9b8bec274..f0fd30a38991a 100644 --- a/src/libstd/ascii.rs +++ b/src/libstd/ascii.rs @@ -669,4 +669,10 @@ mod tests { &from_u32(lower).unwrap().to_string())); } } + + #[test] + fn inference_works() { + let x = "a".to_string(); + x.eq_ignore_ascii_case("A"); + } }