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
09b9447eb6
rust
/
src
/
test
/
run-pass
/
generic-fn-box.rs
6 lines
80 B
Rust
Raw
Normal View
History
Unescape
Escape
Cast more aggressively to the callee type when calling generic functions. Add a test-case for this, and XFAIL it in rustboot.
2011-02-24 15:51:53 -06:00
Port the tests to the decl foo<T> syntax.
2011-08-12 08:37:25 -05:00
fn
f
<
T
>
(
x
:
@
T
)
->
@
T
{
ret
x
;
}
Reformat source tree (minus a couple tests that are still grumpy).
2011-06-15 13:19:50 -05:00
Register new snapshots, purge log_err and log_full in favour of log(...).
2011-12-22 19:53:53 -06:00
fn
main
(
)
{
let
x
=
f
(
@
3
)
;
log
(
debug
,
*
x
)
;
}
Reference in New Issue
Copy Permalink