/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. fn f() {
  3. #[foo = "bar"]
  4. let x = 10;
  5. }
  6. fn main() {
  7. }