]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/macro-at-most-once-rep-2015-ques-rep.rs
Support ? Kleene operator in 2015.
[rust.git] / src / test / ui / macros / macro-at-most-once-rep-2015-ques-rep.rs
1 // Test behavior of `?` macro _kleene op_ under the 2015 edition. Namely, it doesn't exist.
2
3 // edition:2015
4
5 macro_rules! bar {
6     ($(a)?) => {} //~ERROR expected `*` or `+`
7 }
8
9 macro_rules! baz {
10     ($(a),?) => {} //~ERROR expected `*` or `+`
11 }
12
13 fn main() {}