fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0425]: cannot find function `foo` in this scope 2 --> $DIR/assoc_fn_without_self.rs:16:9 3 | 4LL | foo(); 5 | ^^^ not found in this scope 6 | 7help: consider using the associated function on `Self` 8 | 9LL | Self::foo(); 10 | ++++++ 11 12error[E0425]: cannot find function `bar` in this scope 13 --> $DIR/assoc_fn_without_self.rs:17:9 14 | 15LL | fn bar(&self) {} 16 | --- a method by that name is available on `Self` here 17... 18LL | bar(); 19 | ^^^ not found in this scope 20 21error[E0425]: cannot find function `baz` in this scope 22 --> $DIR/assoc_fn_without_self.rs:18:9 23 | 24LL | baz(2, 3); 25 | ^^^ not found in this scope 26 | 27help: consider using the associated function on `Self` 28 | 29LL | Self::baz(2, 3); 30 | ++++++ 31 32error[E0425]: cannot find function `foo` in this scope 33 --> $DIR/assoc_fn_without_self.rs:14:13 34 | 35LL | foo(); 36 | ^^^ not found in this scope 37 38error[E0425]: cannot find function `foo` in this scope 39 --> $DIR/assoc_fn_without_self.rs:24:9 40 | 41LL | foo(); 42 | ^^^ not found in this scope 43 | 44help: consider using the associated function on `Self` 45 | 46LL | Self::foo(); 47 | ++++++ 48 49error[E0425]: cannot find function `bar` in this scope 50 --> $DIR/assoc_fn_without_self.rs:25:9 51 | 52LL | bar(); 53 | ^^^ not found in this scope 54 | 55help: consider using the method on `Self` 56 | 57LL | self.bar(); 58 | +++++ 59 60error[E0425]: cannot find function `baz` in this scope 61 --> $DIR/assoc_fn_without_self.rs:26:9 62 | 63LL | baz(2, 3); 64 | ^^^ not found in this scope 65 | 66help: consider using the associated function on `Self` 67 | 68LL | Self::baz(2, 3); 69 | ++++++ 70 71error[E0425]: cannot find function `foo` in this scope 72 --> $DIR/assoc_fn_without_self.rs:22:13 73 | 74LL | foo(); 75 | ^^^ not found in this scope 76 77error: aborting due to 8 previous errors 78 79For more information about this error, try `rustc --explain E0425`.