fork/rust
git clone https://git.julia.blue/fork/rust
b8cedc00407
1.42.0
1error[E0308]: mismatched types 2 --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:85:24 3 | 4LL | let _seetype: () = z; 5 | -- ^ expected `()`, found `u32` 6 | | 7 | expected due to this 8 9error[E0308]: mismatched types 10 --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:102:24 11 | 12LL | let _seetype: () = z; 13 | -- ^ expected `()`, found `u64` 14 | | 15 | expected due to this 16 17error[E0034]: multiple applicable items in scope 18 --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:120:15 19 | 20LL | let z = x.foo(); 21 | ^^^ multiple `foo` found 22 | 23note: candidate #1 is defined in an impl of the trait `internal::X` for the type `_` 24 --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:43:9 25 | 26LL | fn foo(self: Smaht<Self, u64>) -> u64 { 27 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 28note: candidate #2 is defined in an impl of the trait `nuisance_foo::NuisanceFoo` for the type `_` 29 --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:70:9 30 | 31LL | fn foo(self) {} 32 | ^^^^^^^^^^^^ 33note: candidate #3 is defined in the trait `FinalFoo` 34 --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:57:5 35 | 36LL | fn foo(&self) -> u8; 37 | ^^^^^^^^^^^^^^^^^^^^ 38help: disambiguate the method call for candidate #1 39 | 40LL | let z = internal::X::foo(x); 41 | ^^^^^^^^^^^^^^^^^^^ 42help: disambiguate the method call for candidate #2 43 | 44LL | let z = nuisance_foo::NuisanceFoo::foo(x); 45 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 46help: disambiguate the method call for candidate #3 47 | 48LL | let z = FinalFoo::foo(x); 49 | ^^^^^^^^^^^^^^^^ 50 51error[E0308]: mismatched types 52 --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:137:24 53 | 54LL | let _seetype: () = z; 55 | -- ^ expected `()`, found `u8` 56 | | 57 | expected due to this 58 59error[E0308]: mismatched types 60 --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:155:24 61 | 62LL | let _seetype: () = z; 63 | -- ^ expected `()`, found `u32` 64 | | 65 | expected due to this 66 67error[E0308]: mismatched types 68 --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:172:24 69 | 70LL | let _seetype: () = z; 71 | -- ^ expected `()`, found `u32` 72 | | 73 | expected due to this 74 75error: aborting due to 6 previous errors 76 77Some errors have detailed explanations: E0034, E0308. 78For more information about an error, try `rustc --explain E0034`.