summaryrefslogtreecommitdiffstats
path: root/src/test/ui/trait-method-number-parameters.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/trait-method-number-parameters.stderr')
-rw-r--r--src/test/ui/trait-method-number-parameters.stderr13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/ui/trait-method-number-parameters.stderr b/src/test/ui/trait-method-number-parameters.stderr
new file mode 100644
index 000000000..e47fe1a80
--- /dev/null
+++ b/src/test/ui/trait-method-number-parameters.stderr
@@ -0,0 +1,13 @@
+error[E0050]: method `foo` has 2 parameters but the declaration in trait `Foo::foo` has 3
+ --> $DIR/trait-method-number-parameters.rs:7:9
+ |
+LL | fn foo(&mut self, x: i32, y: i32) -> i32;
+ | ------------------------- trait requires 3 parameters
+...
+LL | / &mut self,
+LL | | x: i32,
+ | |______________^ expected 3 parameters, found 2
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0050`.