diff options
| author | Andy Russell <arussell123@gmail.com> | 2019-01-11 12:40:05 -0500 |
|---|---|---|
| committer | Andy Russell <arussell123@gmail.com> | 2019-01-11 13:00:44 -0500 |
| commit | 020e1f5b60d406524599bff35b43167f2af4302f (patch) | |
| tree | cc5da22bf157c57f487c8dd812a41ca8ec09420c /src/test/ui/macros/format-parse-errors.rs | |
| parent | 6ecad338381cc3b8d56e2df22e5971a598eddd6c (diff) | |
| download | rust-020e1f5b60d406524599bff35b43167f2af4302f.tar.gz rust-020e1f5b60d406524599bff35b43167f2af4302f.zip | |
don't unwrap unexpected tokens in `format!`
Fixes #57512.
Diffstat (limited to 'src/test/ui/macros/format-parse-errors.rs')
| -rw-r--r-- | src/test/ui/macros/format-parse-errors.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/ui/macros/format-parse-errors.rs b/src/test/ui/macros/format-parse-errors.rs index ba1e441fe33..96aee5e6aee 100644 --- a/src/test/ui/macros/format-parse-errors.rs +++ b/src/test/ui/macros/format-parse-errors.rs @@ -2,6 +2,7 @@ fn main() { format!(); //~ ERROR requires at least a format string argument format!(struct); //~ ERROR expected expression format!("s", name =); //~ ERROR expected expression + format!("s", foo = foo, bar); //~ ERROR expected `=` format!("s", foo = struct); //~ ERROR expected expression format!("s", struct); //~ ERROR expected expression |
