From bef69a116e0042fbd92dfa08de68da73765f4c14 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Sun, 20 Mar 2016 22:07:49 -0700 Subject: 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(+) (limited to 'src/libstd') diff --git a/src/libstd/ascii.rs b/src/libstd/ascii.rs index 031a9b8bec2..f0fd30a3899 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"); + } } -- cgit 1.4.1-3-g733a5