about summary refs log tree commit diff
path: root/tests/ui/ergonomic-clones/dotuse/block.rs
blob: 2e423c67d02b77919d2ea144b730869a5ba747f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
//@ check-pass

#![feature(ergonomic_clones)]
#![allow(incomplete_features)]

fn use_block_test(x: i32) -> i32 {
    let x = { let x = x + 1; x }.use;
    x
}

fn main() {}