1+ warning: the feature `unsized_locals` is incomplete and may cause the compiler to crash
2+ --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:1:77
3+ |
4+ LL | #![feature(arbitrary_self_types, coerce_unsized, dispatch_from_dyn, unsize, unsized_locals)]
5+ | ^^^^^^^^^^^^^^
6+ |
7+ = note: `#[warn(incomplete_features)]` on by default
8+
19error[E0308]: mismatched types
2- --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:85 :24
10+ --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:86 :24
311 |
412LL | let _seetype: () = z;
513 | -- ^ expected `()`, found `u32`
614 | |
715 | expected due to this
816
917error[E0308]: mismatched types
10- --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:102 :24
18+ --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:103 :24
1119 |
1220LL | let _seetype: () = z;
1321 | -- ^ expected `()`, found `u64`
1422 | |
1523 | expected due to this
1624
1725error[E0034]: multiple applicable items in scope
18- --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:120 :15
26+ --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:121 :15
1927 |
2028LL | let z = x.foo();
2129 | ^^^ multiple `foo` found
2230 |
2331note: candidate #1 is defined in an impl of the trait `internal::X` for the type `T`
24- --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:43 :9
32+ --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:44 :9
2533 |
2634LL | fn foo(self: Smaht<Self, u64>) -> u64 {
2735 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2836note: candidate #2 is defined in an impl of the trait `nuisance_foo::NuisanceFoo` for the type `T`
29- --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:70 :9
37+ --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:71 :9
3038 |
3139LL | fn foo(self) {}
3240 | ^^^^^^^^^^^^
3341note: candidate #3 is defined in the trait `FinalFoo`
34- --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:57 :5
42+ --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:58 :5
3543 |
3644LL | fn foo(&self) -> u8;
3745 | ^^^^^^^^^^^^^^^^^^^^
@@ -49,30 +57,30 @@ LL | let z = FinalFoo::foo(x);
4957 | ^^^^^^^^^^^^^^^^
5058
5159error[E0308]: mismatched types
52- --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:137 :24
60+ --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:138 :24
5361 |
5462LL | let _seetype: () = z;
5563 | -- ^ expected `()`, found `u8`
5664 | |
5765 | expected due to this
5866
5967error[E0308]: mismatched types
60- --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:155 :24
68+ --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:156 :24
6169 |
6270LL | let _seetype: () = z;
6371 | -- ^ expected `()`, found `u32`
6472 | |
6573 | expected due to this
6674
6775error[E0308]: mismatched types
68- --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:172 :24
76+ --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:173 :24
6977 |
7078LL | let _seetype: () = z;
7179 | -- ^ expected `()`, found `u32`
7280 | |
7381 | expected due to this
7482
75- error: aborting due to 6 previous errors
83+ error: aborting due to 6 previous errors; 1 warning emitted
7684
7785Some errors have detailed explanations: E0034, E0308.
7886For more information about an error, try `rustc --explain E0034`.
0 commit comments