summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/diff-markers/fn-arg.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/diff-markers/fn-arg.rs')
-rw-r--r--tests/ui/parser/diff-markers/fn-arg.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/parser/diff-markers/fn-arg.rs b/tests/ui/parser/diff-markers/fn-arg.rs
new file mode 100644
index 000000000..86c355628
--- /dev/null
+++ b/tests/ui/parser/diff-markers/fn-arg.rs
@@ -0,0 +1,16 @@
+trait T {
+ fn foo(
+<<<<<<< HEAD //~ ERROR encountered diff marker
+ x: u8,
+=======
+ x: i8,
+>>>>>>> branch
+ ) {}
+}
+
+struct S;
+impl T for S {}
+
+fn main() {
+ S::foo(42);
+}