Skip to content

Commit bef69a1

Browse files
committed
std: Add regression test for rust-lang#32074
Just to make sure we don't accidentally break this in the future.
1 parent 7c66a89 commit bef69a1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/libstd/ascii.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -669,4 +669,10 @@ mod tests {
669669
&from_u32(lower).unwrap().to_string()));
670670
}
671671
}
672+
673+
#[test]
674+
fn inference_works() {
675+
let x = "a".to_string();
676+
x.eq_ignore_ascii_case("A");
677+
}
672678
}

0 commit comments

Comments
 (0)