Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (8 sloc) 219 Bytes
// run-pass
#![allow(unused_assignments)]
// pretty-expanded FIXME #23616
pub fn main() {
let s: String = "foobar".to_string();
let mut t: &str = &s;
t = &t[0..3]; // for master: str::view(t, 0, 3) maybe
}
You can’t perform that action at this time.