auto trait incorrectly "unimplemented" by blanket negative impl #108314
Labels
C-bug
Category: This is a bug.
F-auto_traits
`#![feature(auto_traits)]`
F-negative_impls
#![feature(negative_impls)]
I tried this code (playground):
I expected the code to compile, because
Blob
is auto-implemented for all types except those for whichNotBlob
has been implemented (there aren't any); instead, the compiler complains thatBlob
is not implemented for the unit type()
:Meta
rustc --version --verbose
:@rustbot label +F-auto_traits +F-negative_impls
The text was updated successfully, but these errors were encountered: