aboutsummaryrefslogtreecommitdiff
path: root/crates/syntax/test_data/parser/inline/err/0009_attr_on_expr_not_allowed.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/syntax/test_data/parser/inline/err/0009_attr_on_expr_not_allowed.rs')
-rw-r--r--crates/syntax/test_data/parser/inline/err/0009_attr_on_expr_not_allowed.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/syntax/test_data/parser/inline/err/0009_attr_on_expr_not_allowed.rs b/crates/syntax/test_data/parser/inline/err/0009_attr_on_expr_not_allowed.rs
new file mode 100644
index 000000000..d725a07ce
--- /dev/null
+++ b/crates/syntax/test_data/parser/inline/err/0009_attr_on_expr_not_allowed.rs
@@ -0,0 +1,4 @@
1fn foo() {
2 #[A] 1 + 2;
3 #[B] if true {};
4}