Compiler unable to match types with trait implementation #43644
Labels
A-type-system
Area: Type system
C-bug
Category: This is a bug.
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.
rustc 1.19.0 (0ade33941 2017-07-17)
The following piece of code:
fails with:
Because of additional lifetime or template at line 19, compiler is no longer able to resolve
FooRef::from(self);
Link to the repo:
https://github.com/debris/borrowchecker_test
run with
cargo check -p foo
It may not be an issue, but in that case, it needs better error message. And also, please tell me how to make it work ;)
The text was updated successfully, but these errors were encountered: