summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-17503.rs
blob: 9a92c06e1593bf4bb2d58826b2dc3e372602e8c3 (plain)
1
2
3
4
5
6
7
8
9
10
// run-pass
fn main() {
    let s: &[isize] = &[0, 1, 2, 3, 4];
    let ss: &&[isize] = &s;
    let sss: &&&[isize] = &ss;

    println!("{:?}", &s[..3]);
    println!("{:?}", &ss[3..]);
    println!("{:?}", &sss[2..4]);
}