1
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
2
+ --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:2:12
3
3
|
4
- LL | #![feature(arbitrary_self_types, coerce_unsized, dispatch_from_dyn, unsize, unsized_locals, unsized_fn_params)]
5
- | ^^^^^^^^^^^^^^
4
+ LL | #![feature(unsized_locals, unsized_fn_params)]
5
+ | ^^^^^^^^^^^^^^
6
6
|
7
7
= note: `#[warn(incomplete_features)]` on by default
8
8
= note: see issue #48055 <https://github.com/rust-lang/rust/issues/48055> for more information
9
9
10
10
error[E0308]: mismatched types
11
- --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:86 :24
11
+ --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:87 :24
12
12
|
13
13
LL | let _seetype: () = z;
14
14
| -- ^ expected `()`, found `u32`
15
15
| |
16
16
| expected due to this
17
17
18
18
error[E0308]: mismatched types
19
- --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:103 :24
19
+ --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:104 :24
20
20
|
21
21
LL | let _seetype: () = z;
22
22
| -- ^ expected `()`, found `u64`
23
23
| |
24
24
| expected due to this
25
25
26
26
error[E0034]: multiple applicable items in scope
27
- --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:121 :15
27
+ --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:122 :15
28
28
|
29
29
LL | let z = x.foo();
30
30
| ^^^ multiple `foo` found
31
31
|
32
32
note: candidate #1 is defined in an impl of the trait `internal::X` for the type `T`
33
- --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:44 :9
33
+ --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:45 :9
34
34
|
35
35
LL | fn foo(self: Smaht<Self, u64>) -> u64 {
36
36
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
37
37
note: candidate #2 is defined in an impl of the trait `nuisance_foo::NuisanceFoo` for the type `T`
38
- --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:71 :9
38
+ --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:72 :9
39
39
|
40
40
LL | fn foo(self) {}
41
41
| ^^^^^^^^^^^^
42
42
note: candidate #3 is defined in the trait `FinalFoo`
43
- --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:58 :5
43
+ --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:59 :5
44
44
|
45
45
LL | fn foo(&self) -> u8;
46
46
| ^^^^^^^^^^^^^^^^^^^^
@@ -58,23 +58,23 @@ LL | let z = FinalFoo::foo(x);
58
58
| ^^^^^^^^^^^^^^^^
59
59
60
60
error[E0308]: mismatched types
61
- --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:138 :24
61
+ --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:139 :24
62
62
|
63
63
LL | let _seetype: () = z;
64
64
| -- ^ expected `()`, found `u8`
65
65
| |
66
66
| expected due to this
67
67
68
68
error[E0308]: mismatched types
69
- --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:156 :24
69
+ --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:157 :24
70
70
|
71
71
LL | let _seetype: () = z;
72
72
| -- ^ expected `()`, found `u32`
73
73
| |
74
74
| expected due to this
75
75
76
76
error[E0308]: mismatched types
77
- --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:173 :24
77
+ --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:174 :24
78
78
|
79
79
LL | let _seetype: () = z;
80
80
| -- ^ expected `()`, found `u32`
0 commit comments