blob: b687f0b0af0ad90f60c98d9d0a6f44e182055bbf [file] [log] [blame]
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: try: `self.clone`
error[E0425]: cannot find function `default` in this scope
--> $DIR/issue-2356.rs:31:5
|
LL | default();
| ^^^^^^^
|
help: try
|
LL | Self::default();
| ^^^^^^^^^^^^^
help: consider importing this function
|
LL | use std::default::default;
|
error[E0425]: cannot find value `whiskers` in this scope
--> $DIR/issue-2356.rs:39:5
|
LL | whiskers -= other;
| ^^^^^^^^ a field by this name exists in `Self`
error[E0425]: cannot find function `shave` in this scope
--> $DIR/issue-2356.rs:41:5
|
LL | shave(4);
| ^^^^^ help: try: `Self::shave`
error[E0425]: cannot find function `purr` in this scope
--> $DIR/issue-2356.rs:43:5
|
LL | purr();
| ^^^^ not found in this scope
error[E0425]: cannot find function `static_method` in this scope
--> $DIR/issue-2356.rs:52:9
|
LL | static_method();
| ^^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find function `purr` in this scope
--> $DIR/issue-2356.rs:54:9
|
LL | purr();
| ^^^^ not found in this scope
error[E0425]: cannot find function `purr` in this scope
--> $DIR/issue-2356.rs:56:9
|
LL | purr();
| ^^^^ not found in this scope
error[E0425]: cannot find function `purr` in this scope
--> $DIR/issue-2356.rs:58:9
|
LL | purr();
| ^^^^ not found in this scope
error[E0424]: expected value, found module `self`
--> $DIR/issue-2356.rs:65:8
|
LL | / fn meow() {
LL | | if self.whiskers > 3 {
| | ^^^^ `self` value is a keyword only available in methods with a `self` parameter
LL | |
LL | | println!("MEOW");
LL | | }
LL | | }
| |___- this function doesn't have a `self` parameter
error[E0425]: cannot find function `grow_older` in this scope
--> $DIR/issue-2356.rs:72:5
|
LL | grow_older();
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find function `shave` in this scope
--> $DIR/issue-2356.rs:74:5
|
LL | shave();
| ^^^^^ not found in this scope
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[E0425]: cannot find function `purr_louder` in this scope
--> $DIR/issue-2356.rs:86:5
|
LL | purr_louder();
| ^^^^^^^^^^^ not found in this scope
error[E0424]: expected value, found module `self`
--> $DIR/issue-2356.rs:92:5
|
LL | / fn main() {
LL | | self += 1;
| | ^^^^ `self` value is a keyword only available in methods with a `self` parameter
LL | |
LL | | }
| |_- this function doesn't have a `self` parameter
error: aborting due to 17 previous errors
Some errors have detailed explanations: E0424, E0425.
For more information about an error, try `rustc --explain E0424`.