We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7d76d0a + d12e12e commit 6b1426bCopy full SHA for 6b1426b
src/libstd/ascii.rs
@@ -591,13 +591,10 @@ mod tests {
591
fn test_ascii_vec() {
592
let test = &[40u8, 32u8, 59u8];
593
assert_eq!(test.to_ascii(), v2ascii!([40, 32, 59]));
594
- assert_eq!("( ;".to_ascii(), v2ascii!([40, 32, 59]));
595
- // FIXME: #5475 borrowchk error, owned vectors do not live long enough
596
- // if chained-from directly
+ assert_eq!("( ;".to_ascii(), v2ascii!([40, 32, 59]));
597
let v = box [40u8, 32u8, 59u8];
598
assert_eq!(v.to_ascii(), v2ascii!([40, 32, 59]));
599
- let v = "( ;".to_strbuf();
600
- assert_eq!(v.as_slice().to_ascii(), v2ascii!([40, 32, 59]));
+ assert_eq!("( ;".to_strbuf().as_slice().to_ascii(), v2ascii!([40, 32, 59]));
601
602
assert_eq!("abCDef&?#".to_ascii().to_lower().into_str(), "abcdef&?#".to_strbuf());
603
assert_eq!("abCDef&?#".to_ascii().to_upper().into_str(), "ABCDEF&?#".to_strbuf());
0 commit comments