This website requires JavaScript.
Explore
Help
Sign in
bjoernager
/
rust
Watch
1
Fork
You've already forked rust
0
Code
Activity
a525c7ddba
rust
/
tests
/
ui
/
macros
/
bad_hello.rs
7 lines
167 B
Rust
Raw
Normal View
History
Unescape
Escape
Update expression span when transcribing macro args closes #29084 closes #28308 closes #25385 closes #28288 closes #31011 closes #26480 closes #26093 closes #26094 closes #25386 closes #26237 closes #25793
2016-01-21 22:14:09 +01:00
fn
main
(
)
{
Improve suggestion for missing fmt str in println Avoid using `concat!(fmt, "\n")` to improve the diagnostics being emitted when the first `println!()` argument isn't a formatting string literal.
2018-07-14 20:50:30 -07:00
println!
(
3
+
4
)
;
//~^ ERROR format argument must be a string literal
println!
(
3
,
4
)
;
//~^ ERROR format argument must be a string literal
Update expression span when transcribing macro args closes #29084 closes #28308 closes #25385 closes #28288 closes #31011 closes #26480 closes #26093 closes #26094 closes #25386 closes #26237 closes #25793
2016-01-21 22:14:09 +01:00
}
Copy permalink