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
ccb5b6fb25
rust
/
src
/
test
/
run-pass
/
generic-fn-unique.rs
5 lines
95 B
Rust
Raw
Normal View
History
Unescape
Escape
Create a bunch of test cases for unique boxes by copying box tests XFAIL the ones that don't work Issue #409
2011-09-23 16:58:06 -05:00
Update stdlib, compiler, and tests to new kind system This involved adding 'copy' to more generics than I hoped, but an experiment with making it implicit showed that that way lies madness -- unless enforced, you will not remember to mark functions that don't copy as not requiring copyable kind. Issue #1177
2011-11-18 05:39:20 -06:00
fn
f
<
copy
T
>
(
x
:
~
T
)
->
~
T
{
ret
x
;
}
Create a bunch of test cases for unique boxes by copying box tests XFAIL the ones that don't work Issue #409
2011-09-23 16:58:06 -05:00
Register snapshots and switch logging over to use of log_full or #error / #debug.
2011-12-22 16:42:52 -06:00
fn
main
(
)
{
let
x
=
f
(
~
3
)
;
log_full
(
core
::
debug
,
*
x
)
;
}
Reference in New Issue
Copy Permalink