diff options
| author | Rajveer <rajveer.developer@icloud.com> | 2023-12-21 15:14:43 +0530 |
|---|---|---|
| committer | Rajveer <rajveer.developer@icloud.com> | 2023-12-21 16:45:29 +0530 |
| commit | af44e719fa16832425c0764ac9c54ad82a617d3a (patch) | |
| tree | 8b88d6149b8844ef853fe11a7d8f4b9f47b5f238 /tests/ui/annotate-snippet/multispan.rs | |
| parent | be69926a7314200f367e6e9b21e44a2ad3b11ba7 (diff) | |
| download | rust-af44e719fa16832425c0764ac9c54ad82a617d3a.tar.gz rust-af44e719fa16832425c0764ac9c54ad82a617d3a.zip | |
Switch from using `//~ERROR` annotations with `--error-format` to `error-pattern`
Resolves Issue #118752
Diffstat (limited to 'tests/ui/annotate-snippet/multispan.rs')
| -rw-r--r-- | tests/ui/annotate-snippet/multispan.rs | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/tests/ui/annotate-snippet/multispan.rs b/tests/ui/annotate-snippet/multispan.rs index 69d7e1a9d11..d7241b80364 100644 --- a/tests/ui/annotate-snippet/multispan.rs +++ b/tests/ui/annotate-snippet/multispan.rs @@ -1,4 +1,5 @@ // aux-build:multispan.rs +// error-pattern:hello to you, too! // compile-flags: --error-format human-annotate-rs -Z unstable-options #![feature(proc_macro_hygiene)] @@ -12,17 +13,17 @@ fn main() { hello!(); // Exactly one 'hi'. - hello!(hi); //~ ERROR hello to you, too! + hello!(hi); // Now two, back to back. - hello!(hi hi); //~ ERROR hello to you, too! + hello!(hi hi); // Now three, back to back. - hello!(hi hi hi); //~ ERROR hello to you, too! + hello!(hi hi hi); // Now several, with spacing. - hello!(hi hey hi yo hi beep beep hi hi); //~ ERROR hello to you, too! - hello!(hi there, hi how are you? hi... hi.); //~ ERROR hello to you, too! - hello!(whoah. hi di hi di ho); //~ ERROR hello to you, too! - hello!(hi good hi and good bye); //~ ERROR hello to you, too! + hello!(hi hey hi yo hi beep beep hi hi); + hello!(hi there, hi how are you? hi... hi.); + hello!(whoah. hi di hi di ho); + hello!(hi good hi and good bye); } |
