summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-3099.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/issues/issue-3099.stderr')
-rw-r--r--tests/ui/issues/issue-3099.stderr14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-3099.stderr b/tests/ui/issues/issue-3099.stderr
new file mode 100644
index 000000000..32ee2e1d2
--- /dev/null
+++ b/tests/ui/issues/issue-3099.stderr
@@ -0,0 +1,14 @@
+error[E0428]: the name `a` is defined multiple times
+ --> $DIR/issue-3099.rs:5:1
+ |
+LL | fn a(x: String) -> String {
+ | ------------------------- previous definition of the value `a` here
+...
+LL | fn a(x: String, y: String) -> String {
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `a` redefined here
+ |
+ = note: `a` must be defined only once in the value namespace of this module
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0428`.