about summary refs log tree commit diff
path: root/tests/ui/parser/diff-markers/item-with-attr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/diff-markers/item-with-attr.rs')
-rw-r--r--tests/ui/parser/diff-markers/item-with-attr.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/parser/diff-markers/item-with-attr.rs b/tests/ui/parser/diff-markers/item-with-attr.rs
new file mode 100644
index 00000000000..985907c08b2
--- /dev/null
+++ b/tests/ui/parser/diff-markers/item-with-attr.rs
@@ -0,0 +1,10 @@
+#[attribute]
+<<<<<<< HEAD //~ ERROR encountered diff marker
+fn foo() {}
+=======
+fn bar() {}
+>>>>>>> branch
+
+fn main() {
+    foo();
+}