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