]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/macros/macro-at-most-once-rep-2015-ques-rep.stderr
Changing error message to reflect changes with the 2018 edition
[rust.git] / src / test / ui / macros / macro-at-most-once-rep-2015-ques-rep.stderr
index 8681b5d5be54e0394ebea1253dc7e8478050cf67..cb0a9163b74702da761767ebcc60f9dbf6012906 100644 (file)
@@ -1,18 +1,18 @@
 error: expected `*` or `+`
-  --> $DIR/macro-at-most-once-rep-2015-ques-rep.rs:16:10
+  --> $DIR/macro-at-most-once-rep-2015-ques-rep.rs:6:10
    |
 LL |     ($(a)?) => {} //~ERROR expected `*` or `+`
    |          ^
    |
-   = note: `?` is not a macro repetition operator
+   = note: `?` is not a macro repetition operator in the 2015 edition, but is accepted in the 2018 edition
 
 error: expected `*` or `+`
-  --> $DIR/macro-at-most-once-rep-2015-ques-rep.rs:20:11
+  --> $DIR/macro-at-most-once-rep-2015-ques-rep.rs:10:11
    |
 LL |     ($(a),?) => {} //~ERROR expected `*` or `+`
    |           ^
    |
-   = note: `?` is not a macro repetition operator
+   = note: `?` is not a macro repetition operator in the 2015 edition, but is accepted in the 2018 edition
 
 error: aborting due to 2 previous errors