This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
f44d116e1f
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 15:14:09 -06: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 22:50:30 -05: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 15:14:09 -06:00
}
Reference in New Issue
Copy Permalink