summaryrefslogtreecommitdiffstats
path: root/tests/ui/nll/issue-51512.rs
blob: 691760eb91e52fb12816cf537af927283752867e (plain)
1
2
3
4
5
6
fn main() {
    let range = 0..1;
    let r = range;
    let x = range.start;
    //~^ ERROR use of moved value: `range` [E0382]
}