implicit Deref coercion not happening #109829
Labels
A-docs
Area: documentation for any part of the project, including the compiler, standard library, and tools
C-discussion
Category: Discussion or questions that doesn't represent real issues.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
(playground link)[https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=53696b2684233ffd81680129f6c076d2]
I expected to see this happen: compile with no error (because of https://doc.rust-lang.org/book/ch15-02-deref.html#implicit-deref-coercions-with-functions-and-methods and https://doc.rust-lang.org/stable/std/path/struct.PathBuf.html#impl-Deref-for-PathBuf ).
Instead, this happened:
Meta
rustc --version --verbose
:This doesn't cause a backtrace from the compiler.
Backtrace
The text was updated successfully, but these errors were encountered: