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
test.rs:5:1: 5:34 error: expected Foo<X2>, but found Foo<X1> (expected struct X2 but found struct X1)
test.rs:5 impl<T: Foo<X1>> Foo<X2> for T {}
This is supposedly related to Rust not distinguishing between different instantiations of generic traits, though you'd never guess that from the error message...
The text was updated successfully, but these errors were encountered:
[`filter_map_bool_then`]: Don't ICE on late bound regions
Fixesrust-lang#11309
Also lints `&NonCopy` now, since any `&` is `Copy`. That was accidental, but it seems that this is a consequence (or improvement!) of this fix.
r? `@Jarcho`
changelog: [`filter_map_bool_then`]: Don't ICE on late bound regions
[Previously reported on rust-dev]
I'm trying to say "Any type that implements
Foo<X1>
also implementsFoo<X2>
":but this does not compile:
This is supposedly related to Rust not distinguishing between different instantiations of generic traits, though you'd never guess that from the error message...
The text was updated successfully, but these errors were encountered: