Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix tests for changes in #26241.
  • Loading branch information
SimonSapin committed Jul 13, 2015
1 parent eb99f0e commit 3226858
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/libcollections/str.rs
Expand Up @@ -780,7 +780,7 @@ impl str {
///
/// # Examples
/// ```
/// # #![feature(collections)]
/// # #![feature(str_split_at)]
/// let s = "Löwe 老虎 Léopard";
/// let first_space = s.find(' ').unwrap_or(s.len());
/// let (a, b) = s.split_at(first_space);
Expand Down
1 change: 1 addition & 0 deletions src/libcollectionstest/lib.rs
Expand Up @@ -44,6 +44,7 @@
#![feature(str_char)]
#![feature(str_escape)]
#![feature(str_match_indices)]
#![feature(str_split_at)]
#![feature(str_utf16)]
#![feature(box_str)]
#![feature(subslice_offset)]
Expand Down
16 changes: 0 additions & 16 deletions src/test/compile-fail/str-mut-idx-2.rs

This file was deleted.

5 changes: 3 additions & 2 deletions src/test/compile-fail/str-mut-idx.rs
Expand Up @@ -13,10 +13,11 @@ fn bot<T>() -> T { loop {} }
fn mutate(s: &mut str) {
s[1..2] = bot();
//~^ ERROR `core::marker::Sized` is not implemented for the type `str`
//~^^ ERROR `core::marker::Sized` is not implemented for the type `str`
//~| ERROR `core::marker::Sized` is not implemented for the type `str`
s[1usize] = bot();
//~^ ERROR `core::ops::Index<usize>` is not implemented for the type `str`
//~^^ ERROR `core::ops::Index<usize>` is not implemented for the type `str`
//~| ERROR `core::ops::IndexMut<usize>` is not implemented for the type `str`
//~| ERROR `core::ops::Index<usize>` is not implemented for the type `str`
}

pub fn main() {}

0 comments on commit 3226858

Please sign in to comment.