@@ -24,100 +24,100 @@ error[E0308]: mismatched types
24
24
--> $DIR/pretty.rs:20:31
25
25
|
26
26
LL | fn dyn_fixed(x: &dyn Fixed) { x }
27
- | - ^ expected `()`, found `&dyn Fixed<Assoc = u8> `
27
+ | - ^ expected `()`, found `&dyn Fixed`
28
28
| |
29
- | help: try adding a return type: `-> &dyn Fixed<Assoc = u8> `
29
+ | help: try adding a return type: `-> &dyn Fixed`
30
30
|
31
31
= note: expected unit type `()`
32
- found reference `&dyn Fixed<Assoc = u8> `
32
+ found reference `&dyn Fixed`
33
33
34
34
error[E0308]: mismatched types
35
35
--> $DIR/pretty.rs:21:50
36
36
|
37
37
LL | fn dyn_fixed_multi(x: &dyn Fixed<Assoc = u16>) { x }
38
- | - ^ expected `()`, found `&dyn Fixed<Assoc = u16, Assoc = u8 >`
38
+ | - ^ expected `()`, found `&dyn Fixed<Assoc = u16>`
39
39
| |
40
- | help: try adding a return type: `-> &dyn Fixed<Assoc = u16, Assoc = u8 >`
40
+ | help: try adding a return type: `-> &dyn Fixed<Assoc = u16>`
41
41
|
42
42
= note: expected unit type `()`
43
- found reference `&dyn Fixed<Assoc = u16, Assoc = u8 >`
43
+ found reference `&dyn Fixed<Assoc = u16>`
44
44
45
45
error[E0308]: mismatched types
46
46
--> $DIR/pretty.rs:22:38
47
47
|
48
48
LL | fn dyn_fixed_sub(x: &dyn FixedSub) { x }
49
- | - ^ expected `()`, found `&dyn FixedSub<Assoc = u8> `
49
+ | - ^ expected `()`, found `&dyn FixedSub`
50
50
| |
51
- | help: try adding a return type: `-> &dyn FixedSub<Assoc = u8> `
51
+ | help: try adding a return type: `-> &dyn FixedSub`
52
52
|
53
53
= note: expected unit type `()`
54
- found reference `&dyn FixedSub<Assoc = u8> `
54
+ found reference `&dyn FixedSub`
55
55
56
56
error[E0308]: mismatched types
57
57
--> $DIR/pretty.rs:24:74
58
58
|
59
59
LL | fn dyn_super_generic(x: &dyn for<'a> SuperGeneric<'a, Assoc = &'a u8>) { x }
60
60
| - ^ expected `()`, found `&dyn SuperGeneric<'a, Assoc = &u8>`
61
61
| |
62
- | help: try adding a return type: `-> &dyn for<'a> SuperGeneric<'a, for<'a> Assoc = &'a u8>`
62
+ | help: try adding a return type: `-> &dyn for<'a> SuperGeneric<'a, Assoc = &'a u8>`
63
63
|
64
64
= note: expected unit type `()`
65
- found reference `&dyn for<'a> SuperGeneric<'a, for<'a> Assoc = &'a u8>`
65
+ found reference `&dyn for<'a> SuperGeneric<'a, Assoc = &'a u8>`
66
66
67
67
error[E0308]: mismatched types
68
68
--> $DIR/pretty.rs:25:70
69
69
|
70
70
LL | fn dyn_any_generic(x: &dyn for<'a> AnyGeneric<'a, Assoc = &'a u8>) { x }
71
71
| - ^ expected `()`, found `&dyn AnyGeneric<'a, Assoc = &u8>`
72
72
| |
73
- | help: try adding a return type: `-> &dyn for<'a> AnyGeneric<'a, for<'a> Assoc = &'a u8>`
73
+ | help: try adding a return type: `-> &dyn for<'a> AnyGeneric<'a, Assoc = &'a u8>`
74
74
|
75
75
= note: expected unit type `()`
76
- found reference `&dyn for<'a> AnyGeneric<'a, for<'a> Assoc = &'a u8>`
76
+ found reference `&dyn for<'a> AnyGeneric<'a, Assoc = &'a u8>`
77
77
78
78
error[E0308]: mismatched types
79
79
--> $DIR/pretty.rs:26:60
80
80
|
81
81
LL | fn dyn_fixed_generic1(x: &dyn for<'a> FixedGeneric1<'a>) { x }
82
- | - ^ expected `()`, found `&dyn FixedGeneric1<'a, Assoc = &u8 >`
82
+ | - ^ expected `()`, found `&dyn FixedGeneric1<'a>`
83
83
| |
84
- | help: try adding a return type: `-> &dyn for<'a> FixedGeneric1<'a, for<'a> Assoc = &'a u8 >`
84
+ | help: try adding a return type: `-> &dyn for<'a> FixedGeneric1<'a>`
85
85
|
86
86
= note: expected unit type `()`
87
- found reference `&dyn for<'a> FixedGeneric1<'a, for<'a> Assoc = &'a u8 >`
87
+ found reference `&dyn for<'a> FixedGeneric1<'a>`
88
88
89
89
error[E0308]: mismatched types
90
90
--> $DIR/pretty.rs:27:60
91
91
|
92
92
LL | fn dyn_fixed_generic2(x: &dyn for<'a> FixedGeneric2<'a>) { x }
93
- | - ^ expected `()`, found `&dyn FixedGeneric2<'a, Assoc = &u8 >`
93
+ | - ^ expected `()`, found `&dyn FixedGeneric2<'a>`
94
94
| |
95
- | help: try adding a return type: `-> &dyn for<'a> FixedGeneric2<'a, for<'a> Assoc = &'a u8 >`
95
+ | help: try adding a return type: `-> &dyn for<'a> FixedGeneric2<'a>`
96
96
|
97
97
= note: expected unit type `()`
98
- found reference `&dyn for<'a> FixedGeneric2<'a, for<'a> Assoc = &'a u8 >`
98
+ found reference `&dyn for<'a> FixedGeneric2<'a>`
99
99
100
100
error[E0308]: mismatched types
101
101
--> $DIR/pretty.rs:28:78
102
102
|
103
103
LL | fn dyn_fixed_generic_multi(x: &dyn for<'a> FixedGeneric1<'a, Assoc = &u8>) { x }
104
- | - ^ expected `()`, found `&dyn FixedGeneric1<'a, Assoc = ..., Assoc = ... >`
104
+ | - ^ expected `()`, found `&dyn FixedGeneric1<'a, Assoc = &u8 >`
105
105
| |
106
- | help: try adding a return type: `-> &dyn for<'a> FixedGeneric1<'a, for<'a> Assoc = &u8, for<'a> Assoc = &'a u8>`
106
+ | help: try adding a return type: `-> &dyn for<'a> FixedGeneric1<'a, Assoc = &u8>`
107
107
|
108
108
= note: expected unit type `()`
109
- found reference `&dyn for<'a> FixedGeneric1<'a, for<'a> Assoc = &u8, for<'a> Assoc = &'a u8>`
109
+ found reference `&dyn for<'a> FixedGeneric1<'a, Assoc = &u8>`
110
110
111
111
error[E0308]: mismatched types
112
112
--> $DIR/pretty.rs:29:40
113
113
|
114
114
LL | fn dyn_fixed_hrtb(x: &dyn FixedHrtb) { x }
115
- | - ^ expected `()`, found `&dyn FixedHrtb<Assoc = &u8> `
115
+ | - ^ expected `()`, found `&dyn FixedHrtb`
116
116
| |
117
- | help: try adding a return type: `-> &dyn FixedHrtb<for<'a> Assoc = &'a u8> `
117
+ | help: try adding a return type: `-> &dyn FixedHrtb`
118
118
|
119
119
= note: expected unit type `()`
120
- found reference `&dyn FixedHrtb<for<'a> Assoc = &'a u8> `
120
+ found reference `&dyn FixedHrtb`
121
121
122
122
error: aborting due to 11 previous errors
123
123
0 commit comments