fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0061]: this method takes 0 arguments but 1 argument was supplied 2 --> $DIR/method-call-err-msg.rs:13:7 3 | 4LL | x.zero(0) 5 | ^^^^ - 6 | | 7 | unexpected argument of type `{integer}` 8 | help: remove the extra argument 9 | 10note: method defined here 11 --> $DIR/method-call-err-msg.rs:5:8 12 | 13LL | fn zero(self) -> Foo { self } 14 | ^^^^ 15 16error[E0061]: this method takes 1 argument but 0 arguments were supplied 17 --> $DIR/method-call-err-msg.rs:14:7 18 | 19LL | .one() 20 | ^^^-- an argument of type `isize` is missing 21 | 22note: method defined here 23 --> $DIR/method-call-err-msg.rs:6:8 24 | 25LL | fn one(self, _: isize) -> Foo { self } 26 | ^^^ -------- 27help: provide the argument 28 | 29LL | .one(/* isize */) 30 | ~~~~~~~~~~~~~ 31 32error[E0061]: this method takes 2 arguments but 1 argument was supplied 33 --> $DIR/method-call-err-msg.rs:15:7 34 | 35LL | .two(0); 36 | ^^^--- an argument of type `isize` is missing 37 | 38note: method defined here 39 --> $DIR/method-call-err-msg.rs:7:8 40 | 41LL | fn two(self, _: isize, _: isize) -> Foo { self } 42 | ^^^ -------- -------- 43help: provide the argument 44 | 45LL | .two(0, /* isize */); 46 | ~~~~~~~~~~~~~~~~ 47 48error[E0599]: `Foo` is not an iterator 49 --> $DIR/method-call-err-msg.rs:19:7 50 | 51LL | pub struct Foo; 52 | -------------- 53 | | 54 | method `take` not found for this struct 55 | doesn't satisfy `Foo: Iterator` 56... 57LL | / y.zero() 58LL | | .take() 59 | | -^^^^ `Foo` is not an iterator 60 | |______| 61 | 62 | 63 = note: the following trait bounds were not satisfied: 64 `Foo: Iterator` 65 which is required by `&mut Foo: Iterator` 66note: the trait `Iterator` must be implemented 67 --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL 68 = help: items from traits can only be used if the trait is implemented and in scope 69 = note: the following trait defines an item `take`, perhaps you need to implement it: 70 candidate #1: `Iterator` 71 72error[E0061]: this method takes 3 arguments but 0 arguments were supplied 73 --> $DIR/method-call-err-msg.rs:21:7 74 | 75LL | y.three::<usize>(); 76 | ^^^^^^^^^^^^^^-- three arguments of type `usize`, `usize`, and `usize` are missing 77 | 78note: method defined here 79 --> $DIR/method-call-err-msg.rs:8:8 80 | 81LL | fn three<T>(self, _: T, _: T, _: T) -> Foo { self } 82 | ^^^^^ ---- ---- ---- 83help: provide the arguments 84 | 85LL | y.three::<usize>(/* usize */, /* usize */, /* usize */); 86 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 87 88error: aborting due to 5 previous errors 89 90Some errors have detailed explanations: E0061, E0599. 91For more information about an error, try `rustc --explain E0061`.