You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/ui/errors/span-format_args-issue-140578.stderr
+18-24Lines changed: 18 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -1,48 +1,42 @@
1
1
error[E0282]: type annotations needed
2
-
--> $DIR/span-format_args-issue-140578.rs:2:3
2
+
--> $DIR/span-format_args-issue-140578.rs:2:28
3
3
|
4
4
LL | print!("{:?} {a} {a:?}", [], a = 1 + 1);
5
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type
5
+
| ^^ cannot infer type
6
6
|
7
-
= note: this error originates in the macro `print` (in Nightly builds, run with -Z macro-backtrace for more info)
7
+
= note: this error originates in the macro `$crate::format_args` which comes from the expansion of the macro `print` (in Nightly builds, run with -Z macro-backtrace for more info)
8
8
9
9
error[E0282]: type annotations needed
10
-
--> $DIR/span-format_args-issue-140578.rs:7:3
10
+
--> $DIR/span-format_args-issue-140578.rs:7:30
11
11
|
12
12
LL | println!("{:?} {a} {a:?}", [], a = 1 + 1);
13
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type
13
+
| ^^ cannot infer type
14
14
|
15
-
= note: this error originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
15
+
= note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type
21
+
| ^^ cannot infer type
22
22
|
23
-
= note: this error originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
23
+
= note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
24
24
25
25
error[E0282]: type annotations needed
26
-
--> $DIR/span-format_args-issue-140578.rs:17:3
26
+
--> $DIR/span-format_args-issue-140578.rs:17:41
27
27
|
28
28
LL | println!("{:?} {:?} {a} {a:?} {b:?}", [], [], a = 1 + 1, b = []);
29
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type
29
+
| ^^ cannot infer type
30
30
|
31
-
= note: this error originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
31
+
= note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
32
32
33
33
error[E0282]: type annotations needed
34
-
--> $DIR/span-format_args-issue-140578.rs:22:3
35
-
|
36
-
LL | / println!("
37
-
LL | | {:?} {:?}
38
-
LL | | {a}
39
-
LL | | {a:?}",
40
-
LL | | [],
41
-
LL | | [],
42
-
LL | | a = 1 + 1);
43
-
| |__________^ cannot infer type
44
-
|
45
-
= note: this error originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
34
+
--> $DIR/span-format_args-issue-140578.rs:26:9
35
+
|
36
+
LL | [],
37
+
| ^^ cannot infer type
38
+
|
39
+
= note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
0 commit comments