fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

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