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
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type
201
+
|
202
+
= 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)
= 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)
= 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
+
9
+
error[E0282]: type annotations needed
10
+
--> $DIR/span-format_args-issue-140578.rs:6:30
3
11
|
4
12
LL | println!("{:?} {a} {a:?}", [], a = 1 + 1);
5
13
| ^^ cannot infer type
6
14
|
7
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)
8
16
9
-
error: aborting due to 1 previous error
17
+
error: aborting due to 2 previous errors
10
18
11
19
For more information about this error, try `rustc --explain E0282`.
0 commit comments