fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0425]: cannot find value `whiskers` in this scope 2 --> $DIR/issue-2356.rs:39:5 3 | 4LL | whiskers: isize, 5 | --------------- a field by that name exists in `Self` 6... 7LL | whiskers -= other; 8 | ^^^^^^^^ 9 10error[E0424]: expected value, found module `self` 11 --> $DIR/issue-2356.rs:65:8 12 | 13LL | fn meow() { 14 | ---- this function doesn't have a `self` parameter 15LL | if self.whiskers > 3 { 16 | ^^^^ `self` value is a keyword only available in methods with a `self` parameter 17 | 18help: add a `self` receiver parameter to make the associated `fn` a method 19 | 20LL | fn meow(&self) { 21 | +++++ 22 23error[E0425]: cannot find value `whiskers` in this scope 24 --> $DIR/issue-2356.rs:79:5 25 | 26LL | whiskers = 0; 27 | ^^^^^^^^ 28 | 29help: you might have meant to use the available field 30 | 31LL | self.whiskers = 0; 32 | +++++ 33 34error[E0425]: cannot find value `whiskers` in this scope 35 --> $DIR/issue-2356.rs:84:5 36 | 37LL | whiskers: isize, 38 | --------------- a field by that name exists in `Self` 39... 40LL | whiskers = 4; 41 | ^^^^^^^^ 42 43error[E0424]: expected value, found module `self` 44 --> $DIR/issue-2356.rs:92:5 45 | 46LL | fn main() { 47 | ---- this function can't have a `self` parameter 48LL | self += 1; 49 | ^^^^ `self` value is a keyword only available in methods with a `self` parameter 50 51error[E0425]: cannot find function `shave` in this scope 52 --> $DIR/issue-2356.rs:17:5 53 | 54LL | shave(); 55 | ^^^^^ not found in this scope 56 57error[E0425]: cannot find function `clone` in this scope 58 --> $DIR/issue-2356.rs:24:5 59 | 60LL | clone(); 61 | ^^^^^ 62 | 63help: you might have meant to call the method 64 | 65LL | self.clone(); 66 | +++++ 67 68error[E0425]: cannot find function `default` in this scope 69 --> $DIR/issue-2356.rs:31:5 70 | 71LL | default(); 72 | ^^^^^^^ 73 | 74help: you might have meant to call the associated function 75 | 76LL | Self::default(); 77 | ++++++ 78 79error[E0425]: cannot find function `shave` in this scope 80 --> $DIR/issue-2356.rs:41:5 81 | 82LL | shave(4); 83 | ^^^^^ 84 | 85help: you might have meant to call the associated function 86 | 87LL | Self::shave(4); 88 | ++++++ 89 90error[E0425]: cannot find function `purr` in this scope 91 --> $DIR/issue-2356.rs:43:5 92 | 93LL | purr(); 94 | ^^^^ not found in this scope 95 96error[E0425]: cannot find function `static_method` in this scope 97 --> $DIR/issue-2356.rs:52:9 98 | 99LL | static_method(); 100 | ^^^^^^^^^^^^^ not found in this scope 101 | 102help: consider using the associated function on `Self` 103 | 104LL | Self::static_method(); 105 | ++++++ 106 107error[E0425]: cannot find function `purr` in this scope 108 --> $DIR/issue-2356.rs:54:9 109 | 110LL | purr(); 111 | ^^^^ not found in this scope 112 113error[E0425]: cannot find function `purr` in this scope 114 --> $DIR/issue-2356.rs:56:9 115 | 116LL | purr(); 117 | ^^^^ not found in this scope 118 119error[E0425]: cannot find function `purr` in this scope 120 --> $DIR/issue-2356.rs:58:9 121 | 122LL | purr(); 123 | ^^^^ not found in this scope 124 125error[E0425]: cannot find function `grow_older` in this scope 126 --> $DIR/issue-2356.rs:72:5 127 | 128LL | grow_older(); 129 | ^^^^^^^^^^ not found in this scope 130 | 131help: consider using the associated function on `Self` 132 | 133LL | Self::grow_older(); 134 | ++++++ 135 136error[E0425]: cannot find function `shave` in this scope 137 --> $DIR/issue-2356.rs:74:5 138 | 139LL | shave(); 140 | ^^^^^ not found in this scope 141 142error[E0425]: cannot find function `purr_louder` in this scope 143 --> $DIR/issue-2356.rs:86:5 144 | 145LL | purr_louder(); 146 | ^^^^^^^^^^^ not found in this scope 147 148error: aborting due to 17 previous errors 149 150Some errors have detailed explanations: E0424, E0425. 151For more information about an error, try `rustc --explain E0424`.