PageRenderTime 5ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/test/compile-fail/attr-before-stmt.rs

http://github.com/jruderman/rust
Rust | 9 lines | 6 code | 2 blank | 1 comment | 0 complexity | ec42979f662da136f9d62b1276c93ac6 MD5 | raw file
1// error-pattern:expected item
2
3fn f() {
4  #[foo = "bar"]
5  let x = 10;
6}
7
8fn main() {
9}