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
d95ab538c1
rust
/
src
/
test
/
compile-fail
/
cap-clause-unresolved-move.rs
7 lines
106 B
Rust
Raw
Normal View
History
Unescape
Escape
Revert "rustc: Switch to the new resolution pass" This reverts commit c4af6e92fbae171c56a4e68666025725555fc9d8. Branch was burning...many, many unresolved imports.
2012-07-06 22:45:06 -05:00
// error-pattern:unresolved name: z
resolve capture clauses
2011-12-17 23:12:30 -06:00
fn
main
(
)
{
let
x
=
5
;
make it illegal to implicitly capture mutable variables this is the final part of #1273
2012-05-07 13:31:57 -05:00
let
y
=
fn
~
(
move
z
,
move
x
)
{
resolve capture clauses
2011-12-17 23:12:30 -06:00
}
;
make it illegal to implicitly capture mutable variables this is the final part of #1273
2012-05-07 13:31:57 -05:00
}
Reference in New Issue
Copy Permalink