]> git.lizzy.rs Git - rust.git/blob - src/test/ui/class-missing-self.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / class-missing-self.stderr
1 error[E0425]: cannot find value `meows` in this scope
2   --> $DIR/class-missing-self.rs:19:7
3    |
4 LL |       meows += 1; //~ ERROR cannot find value `meows` in this scope
5    |       ^^^^^ help: try: `self.meows`
6
7 error[E0425]: cannot find function `sleep` in this scope
8   --> $DIR/class-missing-self.rs:20:7
9    |
10 LL |       sleep();     //~ ERROR cannot find function `sleep` in this scope
11    |       ^^^^^ not found in this scope
12 help: possible candidate is found in another module, you can import it into scope
13    |
14 LL | use std::thread::sleep;
15    |
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0425`.