summaryrefslogtreecommitdiffstats
path: root/tests/ui/binop/binop-mul-i32-f32.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/binop/binop-mul-i32-f32.stderr')
-rw-r--r--tests/ui/binop/binop-mul-i32-f32.stderr16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/binop/binop-mul-i32-f32.stderr b/tests/ui/binop/binop-mul-i32-f32.stderr
new file mode 100644
index 000000000..c986bc3fd
--- /dev/null
+++ b/tests/ui/binop/binop-mul-i32-f32.stderr
@@ -0,0 +1,16 @@
+error[E0277]: cannot multiply `i32` by `f32`
+ --> $DIR/binop-mul-i32-f32.rs:2:7
+ |
+LL | x * y
+ | ^ no implementation for `i32 * f32`
+ |
+ = help: the trait `Mul<f32>` is not implemented for `i32`
+ = help: the following other types implement trait `Mul<Rhs>`:
+ <&'a i32 as Mul<i32>>
+ <&i32 as Mul<&i32>>
+ <i32 as Mul<&i32>>
+ <i32 as Mul>
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0277`.