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 `str: std::marker::Sized` is not satisfied
+ //~| ERROR `str: std::marker::Sized` is not satisfied
s[1usize] = bot();
- //~^ 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 `str: std::ops::Index<usize>` is not satisfied
+ //~| ERROR `str: std::ops::IndexMut<usize>` is not satisfied
}
pub fn main() {}