summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-5550.rs
blob: 6ea24747b3965647ad179a4a517e5dea34f7659c (plain)
1
2
3
4
5
6
7
8
9
// 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
}