@@ -61,7 +61,7 @@ error: Unrecognised format specifier: 'r'
6161error[E0308]: mismatched types
6262 --> $DIR/debug_printf_type_checking.rs:21:29
6363 |
64- 21 | debug_printf!("%f", 11_u32);
64+ 21 | debug_printf!("%f", 11_u32);
6565 | --------------------^^^^^^-
6666 | | |
6767 | | expected `f32`, found `u32`
@@ -70,7 +70,7 @@ error[E0308]: mismatched types
7070help: the return type of this call is `u32` due to the type of the argument passed
7171 --> $DIR/debug_printf_type_checking.rs:21:9
7272 |
73- 21 | debug_printf!("%f", 11_u32);
73+ 21 | debug_printf!("%f", 11_u32);
7474 | ^^^^^^^^^^^^^^^^^^^^------^
7575 | |
7676 | this argument influences the return type of `debug_printf_assert_is_type`
@@ -82,14 +82,14 @@ note: function defined here
8282 = note: this error originates in the macro `debug_printf` (in Nightly builds, run with -Z macro-backtrace for more info)
8383help: change the type of the numeric literal from `u32` to `f32`
8484 |
85- 21 - debug_printf!("%f", 11_u32);
86- 21 + debug_printf!("%f", 11_f32);
85+ 21 - debug_printf!("%f", 11_u32);
86+ 21 + debug_printf!("%f", 11_f32);
8787 |
8888
8989error[E0308]: mismatched types
9090 --> $DIR/debug_printf_type_checking.rs:22:29
9191 |
92- 22 | debug_printf!("%u", 11.0_f32);
92+ 22 | debug_printf!("%u", 11.0_f32);
9393 | --------------------^^^^^^^^-
9494 | | |
9595 | | expected `u32`, found `f32`
@@ -98,7 +98,7 @@ error[E0308]: mismatched types
9898help: the return type of this call is `f32` due to the type of the argument passed
9999 --> $DIR/debug_printf_type_checking.rs:22:9
100100 |
101- 22 | debug_printf!("%u", 11.0_f32);
101+ 22 | debug_printf!("%u", 11.0_f32);
102102 | ^^^^^^^^^^^^^^^^^^^^--------^
103103 | |
104104 | this argument influences the return type of `debug_printf_assert_is_type`
@@ -110,14 +110,14 @@ note: function defined here
110110 = note: this error originates in the macro `debug_printf` (in Nightly builds, run with -Z macro-backtrace for more info)
111111help: change the type of the numeric literal from `f32` to `u32`
112112 |
113- 22 - debug_printf!("%u", 11.0_f32);
114- 22 + debug_printf!("%u", 11u32);
113+ 22 - debug_printf!("%u", 11.0_f32);
114+ 22 + debug_printf!("%u", 11u32);
115115 |
116116
117117error[E0277]: the trait bound `{float}: Vector<f32, 2>` is not satisfied
118118 --> $DIR/debug_printf_type_checking.rs:23:9
119119 |
120- 23 | debug_printf!("%v2f", 11.0);
120+ 23 | debug_printf!("%v2f", 11.0);
121121 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Vector<f32, 2>` is not implemented for `{float}`
122122 |
123123 = help: the following other types implement trait `Vector<T, N>`:
@@ -143,7 +143,7 @@ note: required by a bound in `debug_printf_assert_is_vector`
143143error[E0308]: mismatched types
144144 --> $DIR/debug_printf_type_checking.rs:24:29
145145 |
146- 24 | debug_printf!("%f", Vec2::splat(33.3));
146+ 24 | debug_printf!("%f", Vec2::splat(33.3));
147147 | --------------------^^^^^^^^^^^^^^^^^-
148148 | | |
149149 | | expected `f32`, found `Vec2`
@@ -152,7 +152,7 @@ error[E0308]: mismatched types
152152help: the return type of this call is `Vec2` due to the type of the argument passed
153153 --> $DIR/debug_printf_type_checking.rs:24:9
154154 |
155- 24 | debug_printf!("%f", Vec2::splat(33.3));
155+ 24 | debug_printf!("%f", Vec2::splat(33.3));
156156 | ^^^^^^^^^^^^^^^^^^^^-----------------^
157157 | |
158158 | this argument influences the return type of `debug_printf_assert_is_type`
0 commit comments