1 warning: the feature `unsized_locals` is incomplete and may not be safe to use and/or cause compiler crashes
2 --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:2:12
4 LL | #![feature(unsized_locals, unsized_fn_params)]
7 = note: see issue #48055 <https://github.com/rust-lang/rust/issues/48055> for more information
8 = note: `#[warn(incomplete_features)]` on by default
10 error[E0308]: mismatched types
11 --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:87:24
13 LL | let _seetype: () = z;
14 | -- ^ expected `()`, found `u32`
16 | expected due to this
18 error[E0308]: mismatched types
19 --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:104:24
21 LL | let _seetype: () = z;
22 | -- ^ expected `()`, found `u64`
24 | expected due to this
26 error[E0034]: multiple applicable items in scope
27 --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:122:15
30 | ^^^ multiple `foo` found
32 note: candidate #1 is defined in an impl of the trait `X` for the type `T`
33 --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:45:9
35 LL | fn foo(self: Smaht<Self, u64>) -> u64 {
36 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
37 note: candidate #2 is defined in an impl of the trait `NuisanceFoo` for the type `T`
38 --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:72:9
42 note: candidate #3 is defined in the trait `FinalFoo`
43 --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:59:5
45 LL | fn foo(&self) -> u8;
46 | ^^^^^^^^^^^^^^^^^^^^
47 help: disambiguate the associated function for candidate #1
49 LL | let z = X::foo(x);
51 help: disambiguate the associated function for candidate #2
53 LL | let z = NuisanceFoo::foo(x);
55 help: disambiguate the associated function for candidate #3
57 LL | let z = FinalFoo::foo(x);
60 error[E0308]: mismatched types
61 --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:139:24
63 LL | let _seetype: () = z;
64 | -- ^ expected `()`, found `u8`
66 | expected due to this
68 error[E0308]: mismatched types
69 --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:157:24
71 LL | let _seetype: () = z;
72 | -- ^ expected `()`, found `u32`
74 | expected due to this
76 error[E0308]: mismatched types
77 --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:174:24
79 LL | let _seetype: () = z;
80 | -- ^ expected `()`, found `u32`
82 | expected due to this
84 error: aborting due to 6 previous errors; 1 warning emitted
86 Some errors have detailed explanations: E0034, E0308.
87 For more information about an error, try `rustc --explain E0034`.