@@ -69,7 +69,9 @@ error[E0308]: mismatched types
69
69
--> $DIR/defaults-specialization.rs:88:32
70
70
|
71
71
LL | let _: <B<()> as Tr>::Ty = 0u8;
72
- | ^^^ expected associated type, found `u8`
72
+ | ----------------- ^^^ expected associated type, found `u8`
73
+ | |
74
+ | expected due to this
73
75
|
74
76
= note: expected associated type `<B<()> as Tr>::Ty`
75
77
found type `u8`
@@ -80,7 +82,9 @@ error[E0308]: mismatched types
80
82
--> $DIR/defaults-specialization.rs:89:32
81
83
|
82
84
LL | let _: <B<()> as Tr>::Ty = true;
83
- | ^^^^ expected associated type, found `bool`
85
+ | ----------------- ^^^^ expected associated type, found `bool`
86
+ | |
87
+ | expected due to this
84
88
|
85
89
= note: expected associated type `<B<()> as Tr>::Ty`
86
90
found type `bool`
@@ -91,7 +95,9 @@ error[E0308]: mismatched types
91
95
--> $DIR/defaults-specialization.rs:90:33
92
96
|
93
97
LL | let _: <B2<()> as Tr>::Ty = 0u8;
94
- | ^^^ expected associated type, found `u8`
98
+ | ------------------ ^^^ expected associated type, found `u8`
99
+ | |
100
+ | expected due to this
95
101
|
96
102
= note: expected associated type `<B2<()> as Tr>::Ty`
97
103
found type `u8`
@@ -102,7 +108,9 @@ error[E0308]: mismatched types
102
108
--> $DIR/defaults-specialization.rs:91:33
103
109
|
104
110
LL | let _: <B2<()> as Tr>::Ty = true;
105
- | ^^^^ expected associated type, found `bool`
111
+ | ------------------ ^^^^ expected associated type, found `bool`
112
+ | |
113
+ | expected due to this
106
114
|
107
115
= note: expected associated type `<B2<()> as Tr>::Ty`
108
116
found type `bool`
0 commit comments