2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(unused_assignments)]
|
2015-03-22 15:13:15 -05:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2013-09-25 02:43:37 -05:00
|
|
|
pub fn main() {
|
2014-05-25 05:17:19 -05:00
|
|
|
let s: String = "foobar".to_string();
|
2015-02-01 20:53:25 -06:00
|
|
|
let mut t: &str = &s;
|
2015-01-26 20:21:15 -06:00
|
|
|
t = &t[0..3]; // for master: str::view(t, 0, 3) maybe
|
2013-05-23 20:36:22 -05:00
|
|
|
}
|