rust/tests/ui/macros/issue-61033-1.rs

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

11 lines
237 B
Rust
Raw Normal View History

2019-05-22 12:20:43 -05:00
// Regression test for issue #61033.
macro_rules! test1 {
2020-03-17 06:12:57 -05:00
($x:ident, $($tt:tt)*) => { $($tt)+ } //~ ERROR this must repeat at least once
2019-05-22 12:20:43 -05:00
}
fn main() {
test1!(x,);
2020-03-17 06:12:57 -05:00
let _recovery_witness: () = 0; //~ ERROR mismatched types
2019-05-22 12:20:43 -05:00
}