1
1
error: Unterminated format specifier: missing type after precision
2
- --> $DIR/debug_printf_type_checking.rs:11 :23
2
+ --> $DIR/debug_printf_type_checking.rs:12 :23
3
3
|
4
- 11 | debug_printf!("%1");
4
+ 12 | debug_printf!("%1");
5
5
| ^^^^
6
6
7
7
error: Unterminated format specifier: missing type after decimal point
8
- --> $DIR/debug_printf_type_checking.rs:12 :23
8
+ --> $DIR/debug_printf_type_checking.rs:13 :23
9
9
|
10
- 12 | debug_printf!("%1.");
10
+ 13 | debug_printf!("%1.");
11
11
| ^^^^^
12
12
13
13
error: Unrecognised format specifier: '.'
14
- --> $DIR/debug_printf_type_checking.rs:13 :23
14
+ --> $DIR/debug_printf_type_checking.rs:14 :23
15
15
|
16
- 13 | debug_printf!("%.");
16
+ 14 | debug_printf!("%.");
17
17
| ^^^^
18
18
19
19
error: Unrecognised format specifier: '.'
20
- --> $DIR/debug_printf_type_checking.rs:14 :23
20
+ --> $DIR/debug_printf_type_checking.rs:15 :23
21
21
|
22
- 14 | debug_printf!("%.1");
22
+ 15 | debug_printf!("%.1");
23
23
| ^^^^^
24
24
25
25
error: Unterminated format specifier: missing type after fraction precision
26
- --> $DIR/debug_printf_type_checking.rs:15 :23
26
+ --> $DIR/debug_printf_type_checking.rs:16 :23
27
27
|
28
- 15 | debug_printf!("%1.1");
28
+ 16 | debug_printf!("%1.1");
29
29
| ^^^^^^
30
30
31
31
error: Missing vector dimensions specifier
32
- --> $DIR/debug_printf_type_checking.rs:16 :23
32
+ --> $DIR/debug_printf_type_checking.rs:17 :23
33
33
|
34
- 16 | debug_printf!("%1.1v");
34
+ 17 | debug_printf!("%1.1v");
35
35
| ^^^^^^^
36
36
37
37
error: Invalid width for vector: 5
38
- --> $DIR/debug_printf_type_checking.rs:17 :23
38
+ --> $DIR/debug_printf_type_checking.rs:18 :23
39
39
|
40
- 17 | debug_printf!("%1.1v5");
40
+ 18 | debug_printf!("%1.1v5");
41
41
| ^^^^^^^^
42
42
43
43
error: Missing vector type specifier
44
- --> $DIR/debug_printf_type_checking.rs:18 :23
44
+ --> $DIR/debug_printf_type_checking.rs:19 :23
45
45
|
46
- 18 | debug_printf!("%1.1v2");
46
+ 19 | debug_printf!("%1.1v2");
47
47
| ^^^^^^^^
48
48
49
49
error: Unrecognised vector type specifier: 'r'
50
- --> $DIR/debug_printf_type_checking.rs:19 :23
50
+ --> $DIR/debug_printf_type_checking.rs:20 :23
51
51
|
52
- 19 | debug_printf!("%1.1v2r");
52
+ 20 | debug_printf!("%1.1v2r");
53
53
| ^^^^^^^^^
54
54
55
55
error: Unrecognised format specifier: 'r'
56
- --> $DIR/debug_printf_type_checking.rs:20 :23
56
+ --> $DIR/debug_printf_type_checking.rs:21 :23
57
57
|
58
- 20 | debug_printf!("%r", 11_i32);
58
+ 21 | debug_printf!("%r", 11_i32);
59
59
| ^^^^
60
60
61
61
error[E0308]: mismatched types
62
- --> $DIR/debug_printf_type_checking.rs:21 :29
62
+ --> $DIR/debug_printf_type_checking.rs:22 :29
63
63
|
64
- 21 | debug_printf!("%f", 11_u32);
64
+ 22 | debug_printf!("%f", 11_u32);
65
65
| --------------------^^^^^^-
66
66
| | |
67
67
| | expected `f32`, found `u32`
68
68
| arguments to this function are incorrect
69
69
|
70
70
help: the return type of this call is `u32` due to the type of the argument passed
71
- --> $DIR/debug_printf_type_checking.rs:21 :9
71
+ --> $DIR/debug_printf_type_checking.rs:22 :9
72
72
|
73
- 21 | debug_printf!("%f", 11_u32);
73
+ 22 | debug_printf!("%f", 11_u32);
74
74
| ^^^^^^^^^^^^^^^^^^^^------^
75
75
| |
76
76
| this argument influences the return type of `spirv_std`
@@ -82,22 +82,22 @@ note: function defined here
82
82
= note: this error originates in the macro `debug_printf` (in Nightly builds, run with -Z macro-backtrace for more info)
83
83
help: change the type of the numeric literal from `u32` to `f32`
84
84
|
85
- 21 | debug_printf!("%f", 11_f32);
85
+ 22 | debug_printf!("%f", 11_f32);
86
86
| ~~~
87
87
88
88
error[E0308]: mismatched types
89
- --> $DIR/debug_printf_type_checking.rs:22 :29
89
+ --> $DIR/debug_printf_type_checking.rs:23 :29
90
90
|
91
- 22 | debug_printf!("%u", 11.0_f32);
91
+ 23 | debug_printf!("%u", 11.0_f32);
92
92
| --------------------^^^^^^^^-
93
93
| | |
94
94
| | expected `u32`, found `f32`
95
95
| arguments to this function are incorrect
96
96
|
97
97
help: the return type of this call is `f32` due to the type of the argument passed
98
- --> $DIR/debug_printf_type_checking.rs:22 :9
98
+ --> $DIR/debug_printf_type_checking.rs:23 :9
99
99
|
100
- 22 | debug_printf!("%u", 11.0_f32);
100
+ 23 | debug_printf!("%u", 11.0_f32);
101
101
| ^^^^^^^^^^^^^^^^^^^^--------^
102
102
| |
103
103
| this argument influences the return type of `spirv_std`
@@ -109,13 +109,13 @@ note: function defined here
109
109
= note: this error originates in the macro `debug_printf` (in Nightly builds, run with -Z macro-backtrace for more info)
110
110
help: change the type of the numeric literal from `f32` to `u32`
111
111
|
112
- 22 | debug_printf!("%u", 11u32);
112
+ 23 | debug_printf!("%u", 11u32);
113
113
| ~~~
114
114
115
115
error[E0277]: the trait bound `{float}: Vector<f32, 2>` is not satisfied
116
- --> $DIR/debug_printf_type_checking.rs:23 :9
116
+ --> $DIR/debug_printf_type_checking.rs:24 :9
117
117
|
118
- 23 | debug_printf!("%v2f", 11.0);
118
+ 24 | debug_printf!("%v2f", 11.0);
119
119
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Vector<f32, 2>` is not implemented for `{float}`
120
120
|
121
121
= help: the following other types implement trait `Vector<T, N>`:
@@ -139,18 +139,18 @@ note: required by a bound in `debug_printf_assert_is_vector`
139
139
= note: this error originates in the macro `debug_printf` (in Nightly builds, run with -Z macro-backtrace for more info)
140
140
141
141
error[E0308]: mismatched types
142
- --> $DIR/debug_printf_type_checking.rs:24 :29
142
+ --> $DIR/debug_printf_type_checking.rs:25 :29
143
143
|
144
- 24 | debug_printf!("%f", Vec2::splat(33.3));
144
+ 25 | debug_printf!("%f", Vec2::splat(33.3));
145
145
| --------------------^^^^^^^^^^^^^^^^^-
146
146
| | |
147
147
| | expected `f32`, found `Vec2`
148
148
| arguments to this function are incorrect
149
149
|
150
150
help: the return type of this call is `Vec2` due to the type of the argument passed
151
- --> $DIR/debug_printf_type_checking.rs:24 :9
151
+ --> $DIR/debug_printf_type_checking.rs:25 :9
152
152
|
153
- 24 | debug_printf!("%f", Vec2::splat(33.3));
153
+ 25 | debug_printf!("%f", Vec2::splat(33.3));
154
154
| ^^^^^^^^^^^^^^^^^^^^-----------------^
155
155
| |
156
156
| this argument influences the return type of `spirv_std`
0 commit comments