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
ffe74b7a3b
rust
/
src
/
test
/
compile-fail
/
view-items-at-top.rs
11 lines
107 B
Rust
Raw
Normal View
History
Unescape
Escape
libsyntax: Give a nice error message when view items are used anywhere other than the top of a module. This is a step on the way to parsing "extern mod foo;"
2012-08-14 13:23:25 -05:00
use
std
;
fn
f
(
)
{
}
test: Use a mod that exists in view-item-at-top
2012-08-14 17:13:47 -05:00
import
std
::
net
;
//~ ERROR view items must be declared at the top
libsyntax: Give a nice error message when view items are used anywhere other than the top of a module. This is a step on the way to parsing "extern mod foo;"
2012-08-14 13:23:25 -05:00
fn
main
(
)
{
}
Reference in New Issue
Copy Permalink