Spurious (?) "trait bound not satisfied" with associated type constructors #34834
Labels
A-type-system
Area: Type system
C-bug
Category: This is a bug.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
I’m using the technique mentioned at https://github.com/rust-lang/rfcs/pull/1598/files/8e922c0cede49b0b07ac6fcf29ea736aab29acb9#r68995241 and used at https://github.com/nikomatsakis/nll/blob/master/graph-algorithms/src/lib.rs to have in a trait an associated type constructor that takes a lifetime parameter.
rustc 1.12.0-nightly (7ad125c 2016-07-11)
Since
<ExampleImpl as TypeConstructor<'a>>::BorrowedNamespace
is&'a str
for any'a
, I believe the boundfor<'a> std::string::String: std::cmp::PartialEq<<ExampleImpl as TypeConstructor<'a>>::BorrowedNamespace>
is equivalent tofor<'a> std::string::String: std::cmp::PartialEq<&'a str>
, which is the third bound that was found.The text was updated successfully, but these errors were encountered: