about summary refs log tree commit diff
path: root/tests/ui/traits/duplicate-methods.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/traits/duplicate-methods.stderr')
-rw-r--r--tests/ui/traits/duplicate-methods.stderr13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/traits/duplicate-methods.stderr b/tests/ui/traits/duplicate-methods.stderr
new file mode 100644
index 00000000000..6aa88d0dff4
--- /dev/null
+++ b/tests/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`.