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
rust
/
src
/
test
/
run-pass
/
borrowck-move-by-capture-ok.rs
6 lines
95 B
Rust
Raw
Normal View
History
Unescape
Escape
Issue #7444 - Update neg test and pos test for move by capture
2013-07-17 09:01:29 -04:00
pub
fn
main
(
)
{
let
bar
=
~
3
;
test: Fix rustdoc and tests.
2013-09-16 23:37:54 -07:00
let
h
:
~
fn
(
)
->
int
=
|
|
*
bar
;
Issue #7444 - Update neg test and pos test for move by capture
2013-07-17 09:01:29 -04:00
assert_eq!
(
h
(
)
,
3
)
;
}
Reference in New Issue
Copy Permalink