]> git.lizzy.rs Git - rust.git/blob - src/test/ui/attributes/const-stability-on-macro.stderr
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / attributes / const-stability-on-macro.stderr
1 error: macros cannot have const stability attributes
2   --> $DIR/const-stability-on-macro.rs:4:1
3    |
4 LL | #[rustc_const_stable(feature = "foo", since = "0")]
5    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ invalid const stability attribute
6 LL |
7 LL | macro_rules! foo {
8    | ---------------- const stability attribute affects this macro
9
10 error: macros cannot have const stability attributes
11   --> $DIR/const-stability-on-macro.rs:10:1
12    |
13 LL | #[rustc_const_unstable(feature = "bar", issue="none")]
14    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ invalid const stability attribute
15 LL |
16 LL | macro_rules! bar {
17    | ---------------- const stability attribute affects this macro
18
19 error: aborting due to 2 previous errors
20