summaryrefslogtreecommitdiffstats
path: root/tests/ui/pattern/bindings-after-at/bind-by-move-no-subbindings-fun-param.rs
blob: 1816a74a0ba3d02a15b3ea3ec4c95399db256070 (plain)
1
2
3
4
5
6
7
8
9
10
11
// See issue #12534.

fn main() {}

struct A(Box<u8>);

fn f(a @ A(u): A) -> Box<u8> {
    //~^ ERROR use of partially moved value
    drop(a);
    u
}