fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
690 B29 linesraw
1error[E0425]: cannot find value `meows` in this scope
2  --> $DIR/class-missing-self.rs:9:7
3   |
4LL |       meows += 1;
5   |       ^^^^^
6   |
7help: you might have meant to use the available field
8   |
9LL |       self.meows += 1;
10   |       +++++
11
12error[E0425]: cannot find function `sleep` in this scope
13  --> $DIR/class-missing-self.rs:10:7
14   |
15LL |       sleep();
16   |       ^^^^^ not found in this scope
17   |
18help: consider using the method on `Self`
19   |
20LL |       self.sleep();
21   |       +++++
22help: consider importing this function
23   |
24LL + use std::thread::sleep;
25   |
26
27error: aborting due to 2 previous errors
28
29For more information about this error, try `rustc --explain E0425`.