Idiomatic Rc::clone is unusable with dyn Trait parameters #58716
Labels
A-coercions
Area: implicit and explicit `expr as Type` coercions
A-trait-system
Area: Trait system
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=0771a25efd95be83580de70b3d08db75
AFAIK
Rc::clone()
should be used, instead of.clone()
.It seems free functions are getting their type parameters from the outer scope, not from their own arguments.
Can we coerce it somehow
The text was updated successfully, but these errors were encountered: