summaryrefslogtreecommitdiffstats
path: root/src/test/ui/wrong-mul-method-signature.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:18:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:18:58 +0000
commita4b7ed7a42c716ab9f05e351f003d589124fd55d (patch)
treeb620cd3f223850b28716e474e80c58059dca5dd4 /src/test/ui/wrong-mul-method-signature.stderr
parentAdding upstream version 1.67.1+dfsg1. (diff)
downloadrustc-a4b7ed7a42c716ab9f05e351f003d589124fd55d.tar.xz
rustc-a4b7ed7a42c716ab9f05e351f003d589124fd55d.zip
Adding upstream version 1.68.2+dfsg1.upstream/1.68.2+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/wrong-mul-method-signature.stderr')
-rw-r--r--src/test/ui/wrong-mul-method-signature.stderr54
1 files changed, 0 insertions, 54 deletions
diff --git a/src/test/ui/wrong-mul-method-signature.stderr b/src/test/ui/wrong-mul-method-signature.stderr
deleted file mode 100644
index 9f8896f01..000000000
--- a/src/test/ui/wrong-mul-method-signature.stderr
+++ /dev/null
@@ -1,54 +0,0 @@
-error[E0053]: method `mul` has an incompatible type for trait
- --> $DIR/wrong-mul-method-signature.rs:16:21
- |
-LL | fn mul(self, s: &f64) -> Vec1 {
- | ^^^^
- | |
- | expected `f64`, found `&f64`
- | help: change the parameter type to match the trait: `f64`
- |
- = note: expected fn pointer `fn(Vec1, f64) -> Vec1`
- found fn pointer `fn(Vec1, &f64) -> Vec1`
-
-error[E0053]: method `mul` has an incompatible type for trait
- --> $DIR/wrong-mul-method-signature.rs:33:21
- |
-LL | fn mul(self, s: f64) -> Vec2 {
- | ^^^
- | |
- | expected struct `Vec2`, found `f64`
- | help: change the parameter type to match the trait: `Vec2`
- |
- = note: expected fn pointer `fn(Vec2, Vec2) -> f64`
- found fn pointer `fn(Vec2, f64) -> Vec2`
-
-error[E0053]: method `mul` has an incompatible type for trait
- --> $DIR/wrong-mul-method-signature.rs:52:29
- |
-LL | fn mul(self, s: f64) -> f64 {
- | ^^^
- | |
- | expected `i32`, found `f64`
- | help: change the output type to match the trait: `i32`
- |
- = note: expected fn pointer `fn(Vec3, _) -> i32`
- found fn pointer `fn(Vec3, _) -> f64`
-
-error[E0308]: mismatched types
- --> $DIR/wrong-mul-method-signature.rs:63:45
- |
-LL | let x: Vec2 = Vec2 { x: 1.0, y: 2.0 } * 2.0; // trait had reversed order
- | ^^^ expected struct `Vec2`, found floating-point number
-
-error[E0308]: mismatched types
- --> $DIR/wrong-mul-method-signature.rs:63:19
- |
-LL | let x: Vec2 = Vec2 { x: 1.0, y: 2.0 } * 2.0; // trait had reversed order
- | ---- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `Vec2`, found `f64`
- | |
- | expected due to this
-
-error: aborting due to 5 previous errors
-
-Some errors have detailed explanations: E0053, E0308.
-For more information about an error, try `rustc --explain E0053`.