]> git.proxmox.com Git - rustc.git/blame - src/test/ui/hygiene/missing-self-diag.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / hygiene / missing-self-diag.stderr
CommitLineData
f9f354fc
XL
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!();
c295e0f8 9 | | ----------- in this macro invocation
f9f354fc
XL
10LL | | }
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
15error: aborting due to previous error
16
17For more information about this error, try `rustc --explain E0424`.