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
The expression println!(format!("test")) produces the following error:
<anon>:18:18: 18:24 error: macro undefined: 'format'
<anon>:18 println!(format!("test"))
^~~~~~
<anon>:18:18: 18:33 error: format argument must be a string literal.
<anon>:18 println!(format!("test"))
^~~~~~~~~~~~~~~
error: aborting due to 2 previous errors
The macro undefined: 'format' error is pretty misleading, implying that the user mispelled format! or that it has a different name, but in reality it's just complaining because you're supposed to pass a literal to println!. Why does this error get generated and is there a way to make it clearer?
The text was updated successfully, but these errors were encountered:
feat: Package Windows release artifacts as ZIP and add symbols file
Closesrust-lang#13872Closesrust-lang#7747
CC rust-lang#10371
This allows us to ship a format that's easier to handle on Windows. As a bonus, we can also include the PDB, to get useful stack traces. Unfortunately, it adds a couple of dependencies to `xtask`, increasing the debug build times from 1.28 to 1.58 s (release from 1.60s to 2.20s) on my system.
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Feb 13, 2023
minor: Bump `zip` to avoid `time-macros`
This fixes the compile time regression in rust-lang#13876 and sneaks in two typo fixes spotted by `@cuishuang` (sorry for not preserving the commit attribution, but it's a little hard to manage it across repositories).
The expression
println!(format!("test"))
produces the following error:The
macro undefined: 'format'
error is pretty misleading, implying that the user mispelledformat!
or that it has a different name, but in reality it's just complaining because you're supposed to pass a literal toprintln!
. Why does this error get generated and is there a way to make it clearer?The text was updated successfully, but these errors were encountered: