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
359bfa901b9d8eddbed7b88b6716dbb77b7bfb95
rust/tests/ui/macros/macro-match-nonterminal.rs

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

12 lines
202 B
Rust
Raw Normal View History

generic_extension: defatalize Error case
2020-03-17 09:37:59 +01:00
macro_rules! test {
($a, $b) => {
//~^ ERROR missing fragment
//~| ERROR missing fragment
()
};
}
testsuite: Add test cases, some xfailed Closes #5060 Closes #4446 Closes #5192
2013-06-27 16:53:40 -07:00
fn main() {
mbe: Clean up code with non-optional `NonterminalKind` Since [1], the fragment specifier is unconditionally required in all editions. This means `NonTerminalKind` no longer needs to be optional, as we can reject this code during the expansion of `macro_rules!` rather than handling it throughout the code. Do this cleanup here. [1]: https://github.com/rust-lang/rust/pull/128425
2025-06-17 22:15:38 -04:00
test!() //~ ERROR unexpected end of macro invocation
testsuite: Add test cases, some xfailed Closes #5060 Closes #4446 Closes #5192
2013-06-27 16:53:40 -07:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 4674ms Template: 2ms
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