fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/basic.rs:20:13 3 | 4LL | invalid(1.0); 5 | ------- ^^^ expected `u32`, found floating-point number 6 | | 7 | arguments to this function are incorrect 8 | 9note: function defined here 10 --> $DIR/basic.rs:13:4 11 | 12LL | fn invalid(_i: u32) {} 13 | ^^^^^^^ ------- 14 15error[E0061]: this function takes 0 arguments but 1 argument was supplied 16 --> $DIR/basic.rs:21:5 17 | 18LL | extra(""); 19 | ^^^^^ -- 20 | | 21 | unexpected argument of type `&'static str` 22 | help: remove the extra argument 23 | 24note: function defined here 25 --> $DIR/basic.rs:14:4 26 | 27LL | fn extra() {} 28 | ^^^^^ 29 30error[E0061]: this function takes 1 argument but 0 arguments were supplied 31 --> $DIR/basic.rs:22:5 32 | 33LL | missing(); 34 | ^^^^^^^-- an argument of type `u32` is missing 35 | 36note: function defined here 37 --> $DIR/basic.rs:15:4 38 | 39LL | fn missing(_i: u32) {} 40 | ^^^^^^^ ------- 41help: provide the argument 42 | 43LL | missing(/* u32 */); 44 | ~~~~~~~~~~~ 45 46error[E0308]: arguments to this function are incorrect 47 --> $DIR/basic.rs:23:5 48 | 49LL | swapped("", 1); 50 | ^^^^^^^ -- - expected `&str`, found `{integer}` 51 | | 52 | expected `u32`, found `&'static str` 53 | 54note: function defined here 55 --> $DIR/basic.rs:16:4 56 | 57LL | fn swapped(_i: u32, _s: &str) {} 58 | ^^^^^^^ ------- -------- 59help: swap these arguments 60 | 61LL | swapped(1, ""); 62 | ~~~~~~~ 63 64error[E0308]: arguments to this function are incorrect 65 --> $DIR/basic.rs:24:5 66 | 67LL | permuted(Y {}, Z {}, X {}); 68 | ^^^^^^^^ ---- ---- ---- expected `Z`, found `X` 69 | | | 70 | | expected `Y`, found `Z` 71 | expected `X`, found `Y` 72 | 73note: function defined here 74 --> $DIR/basic.rs:17:4 75 | 76LL | fn permuted(_x: X, _y: Y, _z: Z) {} 77 | ^^^^^^^^ ----- ----- ----- 78help: reorder these arguments 79 | 80LL | permuted(X {}, Y {}, Z {}); 81 | ~~~~~~~~~~~~~~~~~~ 82 83error[E0057]: this function takes 1 argument but 0 arguments were supplied 84 --> $DIR/basic.rs:27:5 85 | 86LL | closure(); 87 | ^^^^^^^-- an argument is missing 88 | 89note: closure defined here 90 --> $DIR/basic.rs:26:19 91 | 92LL | let closure = |x| x; 93 | ^^^ 94help: provide the argument 95 | 96LL | closure(/* x */); 97 | ~~~~~~~~~ 98 99error: aborting due to 6 previous errors 100 101Some errors have detailed explanations: E0057, E0061, E0308. 102For more information about an error, try `rustc --explain E0057`.