This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
d709ed2542
rust
/
src
/
test
/
compile-fail
/
cap-clause-unresolved-copy.rs
6 lines
102 B
Rust
Raw
Normal View
History
Unescape
Escape
resolve capture clauses
2011-12-17 23:12:30 -06:00
// error-pattern:unresolved name: z
fn
main
(
)
{
let
x
=
5
;
distinguish "any closure" and "stack closure" (block)
2012-01-12 17:38:44 -06:00
let
y
=
fn
~
[
copy
z
,
x
]
(
)
{
resolve capture clauses
2011-12-17 23:12:30 -06:00
}
;
}
Reference in New Issue
Copy Permalink