summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0586.rs
blob: 2ab8a2959e33d17afa85e2c2854af207a19b0768 (plain)
1
2
3
4
fn main() {
    let tmp = vec![0, 1, 2, 3, 4, 4, 3, 3, 2, 1];
    let x = &tmp[1..=]; //~ ERROR E0586
}