summary refs log tree commit diff
path: root/src/test/compile-fail/sendfn-captures-nonsendable-state.rs
blob: fae7e3d9174092594613ac90c5d8b2b249eaac3f (plain)
1
2
3
4
5
6
// error-pattern: not a sendable value

fn main() {
    let x = @3u;
    let _f = fn~(y: uint) -> uint { ret *x+y; };
}