]> git.lizzy.rs Git - rust.git/blob - tests/ui/self/class-missing-self.stderr
Rollup merge of #107091 - clubby789:infer-ftl-missing-dollar, r=compiler-errors
[rust.git] / tests / ui / self / class-missing-self.stderr
1 error[E0425]: cannot find value `meows` in this scope
2   --> $DIR/class-missing-self.rs:9:7
3    |
4 LL |       meows += 1;
5    |       ^^^^^ help: you might have meant to use the available field: `self.meows`
6
7 error[E0425]: cannot find function `sleep` in this scope
8   --> $DIR/class-missing-self.rs:10:7
9    |
10 LL |       sleep();
11    |       ^^^^^ not found in this scope
12    |
13 help: consider using the associated function
14    |
15 LL |       self.sleep();
16    |       +++++
17 help: consider importing this function
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`.