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
9bcf557589
rust
/
src
/
test
/
run-pass
/
issue-6141-leaking-owned-fn.rs
9 lines
86 B
Rust
Raw
Normal View
History
Unescape
Escape
When autoborrowing a fn in trans, adjust the type of the datum to be `&fn`. Fixes #6141.
2013-05-07 10:41:27 -05:00
fn
run
(
f
:
&
fn
(
)
)
{
f
(
)
}
Fix run-pass tests to have 'pub fn main' This is required by the check-fast target because each test is slurped up into a submodule.
2013-09-25 02:43:37 -05:00
pub
fn
main
(
)
{
When autoborrowing a fn in trans, adjust the type of the datum to be `&fn`. Fixes #6141.
2013-05-07 10:41:27 -05:00
let
f
:
~
fn
(
)
=
|
|
(
)
;
run
(
f
)
;
Fix run-pass tests to have 'pub fn main' This is required by the check-fast target because each test is slurped up into a submodule.
2013-09-25 02:43:37 -05:00
}
Reference in New Issue
Copy Permalink