summaryrefslogtreecommitdiffstats
path: root/tests/ui/duplicate/duplicate-parameter.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/duplicate/duplicate-parameter.stderr')
-rw-r--r--tests/ui/duplicate/duplicate-parameter.stderr9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/duplicate/duplicate-parameter.stderr b/tests/ui/duplicate/duplicate-parameter.stderr
new file mode 100644
index 000000000..f3ef0bcf3
--- /dev/null
+++ b/tests/ui/duplicate/duplicate-parameter.stderr
@@ -0,0 +1,9 @@
+error[E0415]: identifier `a` is bound more than once in this parameter list
+ --> $DIR/duplicate-parameter.rs:1:16
+ |
+LL | fn f(a: isize, a: isize) {}
+ | ^ used as parameter more than once
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0415`.