Closed
Description
To reproduce:
macro_rules! x {
() => (self)
}
struct X;
impl X {
fn y(&self) {
x!()
}
}
error[E0424]: `self` is not available in a static method
--> <anon>:2:12
|
2 | () => (self)
| ^^^^ not available in static method
...
8 | x!()
| ---- in this macro invocation
|
= note: maybe a `self` argument is missing?