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:1:77
3
+ |
4
+ LL | #![feature(arbitrary_self_types, coerce_unsized, dispatch_from_dyn, unsize, unsized_locals, unsized_fn_params)]
5
+ | ^^^^^^^^^^^^^^
6
+ |
7
+ = note: `#[warn(incomplete_features)]` on by default
8
+ = note: see issue #48055 <https://github.com/rust-lang/rust/issues/48055> for more information
9
+
1
10
error[E0308]: mismatched types
2
- --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:85 :24
11
+ --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:86 :24
3
12
|
4
13
LL | let _seetype: () = z;
5
14
| -- ^ expected `()`, found `u32`
6
15
| |
7
16
| expected due to this
8
17
9
18
error[E0308]: mismatched types
10
- --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:102 :24
19
+ --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:103 :24
11
20
|
12
21
LL | let _seetype: () = z;
13
22
| -- ^ expected `()`, found `u64`
14
23
| |
15
24
| expected due to this
16
25
17
26
error[E0034]: multiple applicable items in scope
18
- --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:120 :15
27
+ --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:121 :15
19
28
|
20
29
LL | let z = x.foo();
21
30
| ^^^ multiple `foo` found
22
31
|
23
32
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
33
+ --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:44 :9
25
34
|
26
35
LL | fn foo(self: Smaht<Self, u64>) -> u64 {
27
36
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
28
37
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
38
+ --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:71 :9
30
39
|
31
40
LL | fn foo(self) {}
32
41
| ^^^^^^^^^^^^
33
42
note: candidate #3 is defined in the trait `FinalFoo`
34
- --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:57 :5
43
+ --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:58 :5
35
44
|
36
45
LL | fn foo(&self) -> u8;
37
46
| ^^^^^^^^^^^^^^^^^^^^
@@ -49,30 +58,30 @@ LL | let z = FinalFoo::foo(x);
49
58
| ^^^^^^^^^^^^^^^^
50
59
51
60
error[E0308]: mismatched types
52
- --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:137 :24
61
+ --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:138 :24
53
62
|
54
63
LL | let _seetype: () = z;
55
64
| -- ^ expected `()`, found `u8`
56
65
| |
57
66
| expected due to this
58
67
59
68
error[E0308]: mismatched types
60
- --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:155 :24
69
+ --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:156 :24
61
70
|
62
71
LL | let _seetype: () = z;
63
72
| -- ^ expected `()`, found `u32`
64
73
| |
65
74
| expected due to this
66
75
67
76
error[E0308]: mismatched types
68
- --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:172 :24
77
+ --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:173 :24
69
78
|
70
79
LL | let _seetype: () = z;
71
80
| -- ^ expected `()`, found `u32`
72
81
| |
73
82
| expected due to this
74
83
75
- error: aborting due to 6 previous errors
84
+ error: aborting due to 6 previous errors; 1 warning emitted
76
85
77
86
Some errors have detailed explanations: E0034, E0308.
78
87
For more information about an error, try `rustc --explain E0034`.
0 commit comments