]> git.proxmox.com Git - rustc.git/blob - src/test/ui/error-codes/E0424.stderr
New upstream version 1.40.0+dfsg1
[rustc.git] / src / test / ui / error-codes / E0424.stderr
1 error[E0424]: expected value, found module `self`
2 --> $DIR/E0424.rs:7:9
3 |
4 LL | / fn foo() {
5 LL | | self.bar();
6 | | ^^^^ `self` value is a keyword only available in methods with a `self` parameter
7 LL | | }
8 | |_____- this function doesn't have a `self` parameter
9
10 error[E0424]: expected unit struct, unit variant or constant, found module `self`
11 --> $DIR/E0424.rs:12:9
12 |
13 LL | / fn main () {
14 LL | | let self = "self";
15 | | ^^^^ `self` value is a keyword and may not be bound to variables or shadowed
16 LL | | }
17 | |_- this function doesn't have a `self` parameter
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0424`.