// option. This file may not be copied, modified, or distributed
// except according to those terms.
-//! Operations on ASCII strings and characters
+//! Operations on ASCII strings and characters.
#![stable(feature = "rust1", since = "1.0.0")]
/// # Examples
///
/// ```
- /// #![feature(ascii)]
- ///
/// use std::ascii::AsciiExt;
///
/// let mut ascii = 'a';
///
/// assert_eq!('A', ascii);
/// ```
- #[unstable(feature = "ascii", issue = "27809")]
+ #[stable(feature = "ascii", since = "1.9.0")]
fn make_ascii_uppercase(&mut self);
/// Converts this type to its ASCII lower case equivalent in-place.
/// # Examples
///
/// ```
- /// #![feature(ascii)]
- ///
/// use std::ascii::AsciiExt;
///
/// let mut ascii = 'A';
///
/// assert_eq!('a', ascii);
/// ```
- #[unstable(feature = "ascii", issue = "27809")]
+ #[stable(feature = "ascii", since = "1.9.0")]
fn make_ascii_lowercase(&mut self);
}
&from_u32(lower).unwrap().to_string()));
}
}
+
+ #[test]
+ fn inference_works() {
+ let x = "a".to_string();
+ x.eq_ignore_ascii_case("A");
+ }
}