Can't call method on impl Trait
without explicitly passing generic arguments
#66057
Labels
A-impl-trait
Area: impl Trait. Universally / existentially quantified anonymous types with static dispatch.
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
The next comment has a minimal example(the one in this comment is a bit complex).
Old example
This code:
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=d001a5aeff1523dcec587c3e6e7ea81d
Causes this error:
On both the stable (1.38) and nightly (1.40.0 2019-11-02) versions in the playground.
I expected this code to compile without errors.
The text was updated successfully, but these errors were encountered: