2017-01-11 22:18:08 +00:00
|
|
|
error[E0425]: cannot find value `whiskers` in this scope
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-2356.rs:39:5
|
2016-11-30 22:35:25 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | whiskers -= other;
|
2019-04-18 16:43:15 +00:00
|
|
|
| ^^^^^^^^ a field by this name exists in `Self`
|
2016-11-30 22:35:25 +00:00
|
|
|
|
2022-10-05 05:35:34 +00:00
|
|
|
error[E0424]: expected value, found module `self`
|
|
|
|
--> $DIR/issue-2356.rs:65:8
|
|
|
|
|
|
|
|
|
LL | fn meow() {
|
|
|
|
| ---- this function doesn't have a `self` parameter
|
|
|
|
LL | if self.whiskers > 3 {
|
|
|
|
| ^^^^ `self` value is a keyword only available in methods with a `self` parameter
|
|
|
|
|
|
|
|
|
help: add a `self` receiver parameter to make the associated `fn` a method
|
|
|
|
|
|
|
|
|
LL | fn meow(&self) {
|
|
|
|
| +++++
|
|
|
|
|
|
|
|
error[E0425]: cannot find value `whiskers` in this scope
|
|
|
|
--> $DIR/issue-2356.rs:79:5
|
|
|
|
|
|
|
|
|
LL | whiskers = 0;
|
|
|
|
| ^^^^^^^^ help: you might have meant to use the available field: `self.whiskers`
|
|
|
|
|
|
|
|
error[E0425]: cannot find value `whiskers` in this scope
|
|
|
|
--> $DIR/issue-2356.rs:84:5
|
|
|
|
|
|
|
|
|
LL | whiskers = 4;
|
|
|
|
| ^^^^^^^^ a field by this name exists in `Self`
|
|
|
|
|
|
|
|
error[E0424]: expected value, found module `self`
|
|
|
|
--> $DIR/issue-2356.rs:92:5
|
|
|
|
|
|
|
|
|
LL | fn main() {
|
|
|
|
| ---- this function can't have a `self` parameter
|
|
|
|
LL | self += 1;
|
|
|
|
| ^^^^ `self` value is a keyword only available in methods with a `self` parameter
|
|
|
|
|
|
|
|
error[E0425]: cannot find function `shave` in this scope
|
|
|
|
--> $DIR/issue-2356.rs:17:5
|
|
|
|
|
|
|
|
|
LL | shave();
|
|
|
|
| ^^^^^ not found in this scope
|
|
|
|
|
|
|
|
error[E0425]: cannot find function `clone` in this scope
|
|
|
|
--> $DIR/issue-2356.rs:24:5
|
|
|
|
|
|
|
|
|
LL | clone();
|
|
|
|
| ^^^^^ help: you might have meant to call the method: `self.clone`
|
|
|
|
|
2023-07-08 03:10:12 +00:00
|
|
|
error[E0425]: cannot find function `default` in this scope
|
|
|
|
--> $DIR/issue-2356.rs:31:5
|
|
|
|
|
|
|
|
|
LL | default();
|
|
|
|
| ^^^^^^^ help: you might have meant to call the associated function: `Self::default`
|
|
|
|
|
2017-01-11 22:18:08 +00:00
|
|
|
error[E0425]: cannot find function `shave` in this scope
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-2356.rs:41:5
|
2016-11-30 22:35:25 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | shave(4);
|
2020-10-26 23:28:56 +00:00
|
|
|
| ^^^^^ help: you might have meant to call the associated function: `Self::shave`
|
2016-11-30 22:35:25 +00:00
|
|
|
|
2017-01-11 22:18:08 +00:00
|
|
|
error[E0425]: cannot find function `purr` in this scope
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-2356.rs:43:5
|
2016-11-30 22:35:25 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | purr();
|
2017-01-11 22:18:08 +00:00
|
|
|
| ^^^^ not found in this scope
|
2016-11-30 22:35:25 +00:00
|
|
|
|
2017-01-11 22:18:08 +00:00
|
|
|
error[E0425]: cannot find function `static_method` in this scope
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-2356.rs:52:9
|
2016-11-30 22:35:25 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | static_method();
|
2017-01-11 22:18:08 +00:00
|
|
|
| ^^^^^^^^^^^^^ not found in this scope
|
2022-04-28 07:54:28 +00:00
|
|
|
|
|
|
|
|
help: consider using the associated function
|
|
|
|
|
|
|
|
|
LL | Self::static_method();
|
2022-10-25 16:15:47 +00:00
|
|
|
| ++++++
|
2016-11-30 22:35:25 +00:00
|
|
|
|
2017-01-11 22:18:08 +00:00
|
|
|
error[E0425]: cannot find function `purr` in this scope
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-2356.rs:54:9
|
2016-11-30 22:35:25 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | purr();
|
2017-01-11 22:18:08 +00:00
|
|
|
| ^^^^ not found in this scope
|
2016-11-30 22:35:25 +00:00
|
|
|
|
2017-01-11 22:18:08 +00:00
|
|
|
error[E0425]: cannot find function `purr` in this scope
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-2356.rs:56:9
|
2016-11-30 22:35:25 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | purr();
|
2017-01-11 22:18:08 +00:00
|
|
|
| ^^^^ not found in this scope
|
2016-11-30 22:35:25 +00:00
|
|
|
|
2017-01-11 22:18:08 +00:00
|
|
|
error[E0425]: cannot find function `purr` in this scope
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-2356.rs:58:9
|
2016-11-30 22:35:25 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | purr();
|
2017-01-11 22:18:08 +00:00
|
|
|
| ^^^^ not found in this scope
|
2016-11-30 22:35:25 +00:00
|
|
|
|
2017-01-11 22:18:08 +00:00
|
|
|
error[E0425]: cannot find function `grow_older` in this scope
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-2356.rs:72:5
|
2016-11-30 22:35:25 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | grow_older();
|
2017-01-11 22:18:08 +00:00
|
|
|
| ^^^^^^^^^^ not found in this scope
|
2022-04-28 07:54:28 +00:00
|
|
|
|
|
|
|
|
help: consider using the associated function
|
|
|
|
|
|
|
|
|
LL | Self::grow_older();
|
2022-10-25 16:15:47 +00:00
|
|
|
| ++++++
|
2016-11-30 22:35:25 +00:00
|
|
|
|
2017-01-11 22:18:08 +00:00
|
|
|
error[E0425]: cannot find function `shave` in this scope
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-2356.rs:74:5
|
2016-11-30 22:35:25 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | shave();
|
2017-01-11 22:18:08 +00:00
|
|
|
| ^^^^^ not found in this scope
|
2016-11-30 22:35:25 +00:00
|
|
|
|
2017-01-11 22:18:08 +00:00
|
|
|
error[E0425]: cannot find function `purr_louder` in this scope
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-2356.rs:86:5
|
2017-12-10 20:29:24 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | purr_louder();
|
2017-12-10 20:29:24 +00:00
|
|
|
| ^^^^^^^^^^^ not found in this scope
|
2016-11-30 22:35:25 +00:00
|
|
|
|
2017-07-02 10:49:30 +00:00
|
|
|
error: aborting due to 17 previous errors
|
2016-11-30 22:35:25 +00:00
|
|
|
|
2019-04-17 17:26:38 +00:00
|
|
|
Some errors have detailed explanations: E0424, E0425.
|
2018-03-03 14:59:40 +00:00
|
|
|
For more information about an error, try `rustc --explain E0424`.
|