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
12c32e944d
rust
/
src
/
test
/
compile-fail
/
arg-style-mismatch.rs
6 lines
100 B
Rust
Raw
Normal View
History
Unescape
Escape
Add tests for programs that are invalid by arg-passing-style Closes #1008
2011-10-07 02:50:30 -05:00
// error-pattern: mismatched types
fn
f
(
&
&
_x
:
int
)
{
}
Make it illegal to use modes in a fn signature with providing an explicit variable name. (Step one to changing the defaults) First step to #3535
2012-09-23 06:39:27 -05:00
fn
g
(
_a
:
fn
(
+
v
:
int
)
)
{
}
Add tests for programs that are invalid by arg-passing-style Closes #1008
2011-10-07 02:50:30 -05:00
fn
main
(
)
{
g
(
f
)
;
}
Reference in New Issue
Copy Permalink