Inference failure when a trait is changed to a marker trait #61651
Labels
A-inference
Area: Type inference
C-bug
Category: This is a bug.
F-marker_trait_attr
`#![feature(marker_trait_attr)]`
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=120bf7cdd44e52d7a6d2280cdcdc6de6
It works if I remove the
#[marker]
, but when it's a#[marker]
trait it fails with(I didn't think this property of a trait affected inference at all, so I'm very confused by this...)
The text was updated successfully, but these errors were encountered: