You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
=== stdout ===
error: mismatch in bind of associated constant, got type
--> <anon>:16:15
|
16 | fn foo<F: Foo<N=usize>>() {}
| ^^^^^^^
|
note: associated constant defined here does not match type
--> <anon>:6:3
|
6 | const N: usize;
| ^^^^^^^^^^^^^^^
error[E0271]: type mismatch resolving `<Bar as Foo>::N == usize`
--> <anon>:20:3
|
20 | foo::<Bar>();
| ^^^^^^^^^^ types differ
|
= note: expected type `usize`
found type `3_usize`
note: required by a bound in `foo`
--> <anon>:16:15
|
16 | fn foo<F: Foo<N=usize>>() {}
| ^^^^^^^ required by this bound in `foo`
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0271`.
=== stderr ===
==============
0 commit comments