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
+
1
9
error[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
3
11
|
4
12
LL | let _seetype: () = z;
5
13
| -- ^ expected `()`, found `u32`
6
14
| |
7
15
| expected due to this
8
16
9
17
error[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
11
19
|
12
20
LL | let _seetype: () = z;
13
21
| -- ^ expected `()`, found `u64`
14
22
| |
15
23
| expected due to this
16
24
17
25
error[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
19
27
|
20
28
LL | let z = x.foo();
21
29
| ^^^ multiple `foo` found
22
30
|
23
31
note: 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
25
33
|
26
34
LL | fn foo(self: Smaht<Self, u64>) -> u64 {
27
35
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
28
36
note: 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
30
38
|
31
39
LL | fn foo(self) {}
32
40
| ^^^^^^^^^^^^
33
41
note: 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
35
43
|
36
44
LL | fn foo(&self) -> u8;
37
45
| ^^^^^^^^^^^^^^^^^^^^
@@ -49,30 +57,30 @@ LL | let z = FinalFoo::foo(x);
49
57
| ^^^^^^^^^^^^^^^^
50
58
51
59
error[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
53
61
|
54
62
LL | let _seetype: () = z;
55
63
| -- ^ expected `()`, found `u8`
56
64
| |
57
65
| expected due to this
58
66
59
67
error[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
61
69
|
62
70
LL | let _seetype: () = z;
63
71
| -- ^ expected `()`, found `u32`
64
72
| |
65
73
| expected due to this
66
74
67
75
error[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
69
77
|
70
78
LL | let _seetype: () = z;
71
79
| -- ^ expected `()`, found `u32`
72
80
| |
73
81
| expected due to this
74
82
75
- error: aborting due to 6 previous errors
83
+ error: aborting due to 6 previous errors; 1 warning emitted
76
84
77
85
Some errors have detailed explanations: E0034, E0308.
78
86
For more information about an error, try `rustc --explain E0034`.
0 commit comments