summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/attr-dangling-in-fn.rs
blob: c7c45bafb0d1eeff6a36edadf0a88164b45ef984 (plain)
1
2
3
4
5
6
7
8
// error-pattern:expected statement

fn f() {
  #[foo = "bar"]
}

fn main() {
}