Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 2 Packages Projects Releases Wiki Activity
Files
647f1536d2f50b203ca9a67396225c4f7771e1c8
rust/tests/ui/codemap_tests/bad-format-args.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
183 B
Rust
Raw Normal View History

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() {
Match errors using the callsite of macro expansions
2018-07-19 14:15:43 +02:00
format!(); //~ ERROR requires at least a format string argument
Improve recovery on malformed format call If a comma in a format call is replaced with a similar token, then we emit an error and continue parsing, instead of stopping at this point.
2020-08-31 11:45:50 +02:00
format!("" 1); //~ ERROR expected `,`, found `1`
Be accurate on `format!` parse error expectations
2019-09-01 15:09:05 -07:00
format!("", 1 1); //~ ERROR expected one of
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
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 2383ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API