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
/
compile-fail
/
param-by-value.rs
5 lines
98 B
Rust
Raw
Normal View
History
Unescape
Escape
Add tests for programs that are invalid by arg-passing-style Closes #1008
2011-10-07 09:50:30 +02:00
// error-pattern:can not pass a dynamically-sized type by value
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
<
T
>
(
+
+
_x
:
T
)
{
}
Add tests for programs that are invalid by arg-passing-style Closes #1008
2011-10-07 09:50:30 +02:00
fn
main
(
)
{
}
Reference in New Issue
Copy Permalink