]>
Commit | Line | Data |
---|---|---|
f9f354fc XL |
1 | error[E0424]: expected value, found module `self` |
2 | --> $DIR/missing-self-diag.rs:10:9 | |
3 | | | |
4 | LL | self.bar(); | |
5 | | ^^^^ `self` value is a keyword only available in methods with a `self` parameter | |
6 | ... | |
7 | LL | / pub fn foo(&self) { | |
8 | LL | | call_bar!(); | |
c295e0f8 | 9 | | | ----------- in this macro invocation |
f9f354fc XL |
10 | LL | | } |
11 | | |_____- this function has a `self` parameter, but a macro invocation can only access identifiers it receives from parameters | |
12 | | | |
17df50a5 | 13 | = note: this error originates in the macro `call_bar` (in Nightly builds, run with -Z macro-backtrace for more info) |
f9f354fc XL |
14 | |
15 | error: aborting due to previous error | |
16 | ||
17 | For more information about this error, try `rustc --explain E0424`. |