Inconsistent behavior of auto_traits+negative_impls across crates. #108995
Labels
A-auto-traits
Area: auto traits (e.g., `auto trait Send {}`)
A-trait-system
Area: Trait system
C-bug
Category: This is a bug.
F-auto_traits
`#![feature(auto_traits)]`
F-negative_impls
#![feature(negative_impls)]
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen:
Identical behavior when
NotVoid
is declared in an external crate.Instead, this happened:
An error is produced when
NotVoid
is declared in an external crate (ExternNotVoid
).Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: