@@ -6,18 +6,30 @@ LL | #![feature(const_trait_impl, effects, generic_const_exprs)]
6
6
|
7
7
= help: remove one of these features
8
8
9
- error[E0271 ]: type mismatch resolving `<T as Trait >::Assoc == T `
10
- --> $DIR/assoc-type-const-bound-usage-1.rs:15:44
9
+ error[E0284 ]: type annotations needed: cannot normalize `unqualified<T >::{constant#0} `
10
+ --> $DIR/assoc-type-const-bound-usage-1.rs:15:37
11
11
|
12
12
LL | fn unqualified<T: const Trait>() -> Type<{ T::Assoc::func() }> {
13
- | ^^^^^^^^^^^^^^^^ types differ
13
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot normalize `unqualified<T>::{constant#0}`
14
14
15
- error[E0271 ]: type mismatch resolving `<T as Trait >::Assoc == T `
16
- --> $DIR/assoc-type-const-bound-usage-1.rs:19:42
15
+ error[E0284 ]: type annotations needed: cannot normalize `qualified<T >::{constant#0} `
16
+ --> $DIR/assoc-type-const-bound-usage-1.rs:19:35
17
17
|
18
18
LL | fn qualified<T: const Trait>() -> Type<{ <T as Trait>::Assoc::func() }> {
19
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ
19
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot normalize `qualified<T>::{constant#0}`
20
20
21
- error: aborting due to 3 previous errors
21
+ error[E0284]: type annotations needed: cannot normalize `unqualified<T>::{constant#0}`
22
+ --> $DIR/assoc-type-const-bound-usage-1.rs:16:5
23
+ |
24
+ LL | Type
25
+ | ^^^^ cannot normalize `unqualified<T>::{constant#0}`
26
+
27
+ error[E0284]: type annotations needed: cannot normalize `qualified<T>::{constant#0}`
28
+ --> $DIR/assoc-type-const-bound-usage-1.rs:20:5
29
+ |
30
+ LL | Type
31
+ | ^^^^ cannot normalize `qualified<T>::{constant#0}`
32
+
33
+ error: aborting due to 5 previous errors
22
34
23
- For more information about this error, try `rustc --explain E0271 `.
35
+ For more information about this error, try `rustc --explain E0284 `.
0 commit comments