]> git.lizzy.rs Git - rust.git/blob - src/test/ui/hygiene/missing-self-diag.stderr
Rollup merge of #90202 - matthewjasper:xcrate-hygiene, r=petrochenkov
[rust.git] / src / test / ui / hygiene / missing-self-diag.stderr
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!();
9    | |         ----------- in this macro invocation
10 LL | |     }
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
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0424`.