Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
lint
/
semicolon-in-expressions-from-macros
/
warn-semicolon-in-expressions-from-macros.rs
blob: 8ec70a17864ab6726ded7694d9a1808b4b72cbe2 [
file
] [
log
] [
blame
]
// Ensure that trailing semicolons cause errors by default
macro_rules
!
foo
{
()
=>
{
true
;
//~ ERROR trailing semicolon in macro
//~| WARN this was previously
}
}
fn
main
()
{
let
_val
=
match
true
{
true
=>
false
,
_
=>
foo
!()
};
}