diff options
Diffstat (limited to 'tests/ui/parser/attr-dangling-in-fn.rs')
-rw-r--r-- | tests/ui/parser/attr-dangling-in-fn.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/parser/attr-dangling-in-fn.rs b/tests/ui/parser/attr-dangling-in-fn.rs new file mode 100644 index 000000000..c7c45bafb --- /dev/null +++ b/tests/ui/parser/attr-dangling-in-fn.rs @@ -0,0 +1,8 @@ +// error-pattern:expected statement + +fn f() { + #[foo = "bar"] +} + +fn main() { +} |