/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
- // error-pattern:expected item
- fn f() {
- #[foo = "bar"]
- let x = 10;
- }
- fn main() {
- }