Sign in
chromium
/
external
/
github.com
/
rust-lang
/
rust
/
5a63b2100ed69b14e929671430101cc786f41ea7
/
.
/
src
/
test
/
compile-fail
/
cap-clause-double-copy.rs
blob: 35edca6dbabe5101eb4463771dde932ad3486c76 [
file
] [
log
] [
blame
]
// error-pattern:variable `x` captured more than once
fn
main
()
{
let
x
=
5
;
let
y
=
fn
~(
copy
x
,
copy
x
)
->
int
{
x
};
}