fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0412]: cannot find type `C` in this scope 2 --> $DIR/issue-109831.rs:4:24 3 | 4LL | struct A; 5 | --------- similarly named struct `A` defined here 6... 7LL | fn f(b1: B, b2: B, a2: C) {} 8 | ^ 9 | 10help: a struct with a similar name exists 11 | 12LL | fn f(b1: B, b2: B, a2: A) {} 13 | ~ 14help: you might be missing a type parameter 15 | 16LL | fn f<C>(b1: B, b2: B, a2: C) {} 17 | +++ 18 19error[E0425]: cannot find value `C` in this scope 20 --> $DIR/issue-109831.rs:7:16 21 | 22LL | struct A; 23 | --------- similarly named unit struct `A` defined here 24... 25LL | f(A, A, B, C); 26 | ^ help: a unit struct with a similar name exists: `A` 27 28error[E0061]: this function takes 3 arguments but 4 arguments were supplied 29 --> $DIR/issue-109831.rs:7:5 30 | 31LL | f(A, A, B, C); 32 | ^ - - - unexpected argument 33 | | | 34 | | expected `B`, found `A` 35 | expected `B`, found `A` 36 | 37note: function defined here 38 --> $DIR/issue-109831.rs:4:4 39 | 40LL | fn f(b1: B, b2: B, a2: C) {} 41 | ^ ----- ----- ----- 42help: remove the extra argument 43 | 44LL - f(A, A, B, C); 45LL + f(/* B */, /* B */, B); 46 | 47 48error: aborting due to 3 previous errors 49 50Some errors have detailed explanations: E0061, E0412, E0425. 51For more information about an error, try `rustc --explain E0061`.