]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0425]: cannot find value `meows` in this scope |
0731742a | 2 | --> $DIR/class-missing-self.rs:9:7 |
b7449926 | 3 | | |
532ac7d7 | 4 | LL | meows += 1; |
48663c56 | 5 | | ^^^^^ help: you might have meant to use the available field: `self.meows` |
b7449926 XL |
6 | |
7 | error[E0425]: cannot find function `sleep` in this scope | |
0731742a | 8 | --> $DIR/class-missing-self.rs:10:7 |
b7449926 | 9 | | |
532ac7d7 | 10 | LL | sleep(); |
b7449926 | 11 | | ^^^^^ not found in this scope |
e74abb32 | 12 | | |
487cf647 FG |
13 | help: consider using the associated function |
14 | | | |
15 | LL | self.sleep(); | |
16 | | +++++ | |
f9f354fc | 17 | help: consider importing this function |
b7449926 XL |
18 | | |
19 | LL | use std::thread::sleep; | |
20 | | | |
21 | ||
22 | error: aborting due to 2 previous errors | |
23 | ||
24 | For more information about this error, try `rustc --explain E0425`. |