arbitrary self types causes unexpected error messages #69069
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
D-papercut
Diagnostics: An error or lint that needs small tweaks.
F-arbitrary_self_types
`#![feature(arbitrary_self_types)]`
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This example:
Playground link
gives the error
rather than an error because the
Test
trait is not implemented.This is presumably just a case where improved diagnostics would be good. The inherent
is_some
method winds up not triggering because it requires auto-ref rather than being passed "by value".Originally posted by @tguser402 in #66312 (comment)
The text was updated successfully, but these errors were encountered: