Closed
Description
The following code compiles on stable but gives an error on beta/nightly:
use std::ascii::AsciiExt;
fn main() {
let x = "a".to_string();
x.eq_ignore_ascii_case("A");
}
<anon>:5:32: 5:35 error: mismatched types:
expected `&collections::string::String`,
found `&'static str`
(expected struct `collections::string::String`,
found str) [E0308]
<anon>:5 x.eq_ignore_ascii_case("A");
This was caused by the new impl of AsciiExt on String
: 700ac0e