]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-5550.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-5550.rs
1 // run-pass
2 #![allow(unused_assignments)]
3 // pretty-expanded FIXME #23616
4
5 pub fn main() {
6     let s: String = "foobar".to_string();
7     let mut t: &str = &s;
8     t = &t[0..3]; // for master: str::view(t, 0, 3) maybe
9 }