summaryrefslogtreecommitdiffstats
path: root/src/test/ui/traits/duplicate-methods.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/traits/duplicate-methods.stderr')
-rw-r--r--src/test/ui/traits/duplicate-methods.stderr13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/ui/traits/duplicate-methods.stderr b/src/test/ui/traits/duplicate-methods.stderr
new file mode 100644
index 000000000..6aa88d0df
--- /dev/null
+++ b/src/test/ui/traits/duplicate-methods.stderr
@@ -0,0 +1,13 @@
+error[E0428]: the name `orange` is defined multiple times
+ --> $DIR/duplicate-methods.rs:3:5
+ |
+LL | fn orange(&self);
+ | ----------------- previous definition of the value `orange` here
+LL | fn orange(&self);
+ | ^^^^^^^^^^^^^^^^^ `orange` redefined here
+ |
+ = note: `orange` must be defined only once in the value namespace of this trait
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0428`.