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
/
unique-generic-assign.rs
7 lines
70 B
Rust
Raw
Normal View
History
Unescape
Escape
Add a test for assignment of unique boxes of generics Closes #976 Issue #409
2011-09-24 21:31:28 -07:00
// Issue #976
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 12:39:20 +01:00
fn
f
<
copy
T
>
(
x
:
~
T
)
{
Add a test for assignment of unique boxes of generics Closes #976 Issue #409
2011-09-24 21:31:28 -07:00
let
_x2
=
x
;
}
fn
main
(
)
{
}
Reference in New Issue
Copy Permalink