fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error[E0425]: cannot find function `shave` in this scope 2 --> $DIR/issue-2356.rs:17:5 3 | 4LL | shave(); 5 | ^^^^^ not found in this scope 6 7error[E0425]: cannot find function `clone` in this scope 8 --> $DIR/issue-2356.rs:24:5 9 | 10LL | clone(); 11 | ^^^^^ help: try: `self.clone` 12 13error[E0425]: cannot find function `default` in this scope 14 --> $DIR/issue-2356.rs:31:5 15 | 16LL | default(); 17 | ^^^^^^^ help: try: `Self::default` 18 19error[E0425]: cannot find value `whiskers` in this scope 20 --> $DIR/issue-2356.rs:39:5 21 | 22LL | whiskers -= other; 23 | ^^^^^^^^ a field by this name exists in `Self` 24 25error[E0425]: cannot find function `shave` in this scope 26 --> $DIR/issue-2356.rs:41:5 27 | 28LL | shave(4); 29 | ^^^^^ help: try: `Self::shave` 30 31error[E0425]: cannot find function `purr` in this scope 32 --> $DIR/issue-2356.rs:43:5 33 | 34LL | purr(); 35 | ^^^^ not found in this scope 36 37error[E0425]: cannot find function `static_method` in this scope 38 --> $DIR/issue-2356.rs:52:9 39 | 40LL | static_method(); 41 | ^^^^^^^^^^^^^ not found in this scope 42 43error[E0425]: cannot find function `purr` in this scope 44 --> $DIR/issue-2356.rs:54:9 45 | 46LL | purr(); 47 | ^^^^ not found in this scope 48 49error[E0425]: cannot find function `purr` in this scope 50 --> $DIR/issue-2356.rs:56:9 51 | 52LL | purr(); 53 | ^^^^ not found in this scope 54 55error[E0425]: cannot find function `purr` in this scope 56 --> $DIR/issue-2356.rs:58:9 57 | 58LL | purr(); 59 | ^^^^ not found in this scope 60 61error[E0424]: expected value, found module `self` 62 --> $DIR/issue-2356.rs:65:8 63 | 64LL | / fn meow() { 65LL | | if self.whiskers > 3 { 66 | | ^^^^ `self` value is a keyword only available in methods with a `self` parameter 67LL | | 68LL | | println!("MEOW"); 69LL | | } 70LL | | } 71 | |___- this function doesn't have a `self` parameter 72 73error[E0425]: cannot find function `grow_older` in this scope 74 --> $DIR/issue-2356.rs:72:5 75 | 76LL | grow_older(); 77 | ^^^^^^^^^^ not found in this scope 78 79error[E0425]: cannot find function `shave` in this scope 80 --> $DIR/issue-2356.rs:74:5 81 | 82LL | shave(); 83 | ^^^^^ not found in this scope 84 85error[E0425]: cannot find value `whiskers` in this scope 86 --> $DIR/issue-2356.rs:79:5 87 | 88LL | whiskers = 0; 89 | ^^^^^^^^ help: you might have meant to use the available field: `self.whiskers` 90 91error[E0425]: cannot find value `whiskers` in this scope 92 --> $DIR/issue-2356.rs:84:5 93 | 94LL | whiskers = 4; 95 | ^^^^^^^^ a field by this name exists in `Self` 96 97error[E0425]: cannot find function `purr_louder` in this scope 98 --> $DIR/issue-2356.rs:86:5 99 | 100LL | purr_louder(); 101 | ^^^^^^^^^^^ not found in this scope 102 103error[E0424]: expected value, found module `self` 104 --> $DIR/issue-2356.rs:92:5 105 | 106LL | / fn main() { 107LL | | self += 1; 108 | | ^^^^ `self` value is a keyword only available in methods with a `self` parameter 109LL | | 110LL | | } 111 | |_- this function doesn't have a `self` parameter 112 113error: aborting due to 17 previous errors 114 115Some errors have detailed explanations: E0424, E0425. 116For more information about an error, try `rustc --explain E0424`.