You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an enum value is incorrectly initialized as a variant, the Rust compiler slips on ICE.
Minimal
#[derive(PartialEq,PartialOrd,Clone,Debug)]pubenumSexp{/// A symbol or alist keyList(Vec<Sexp>)}#[derive(Debug,Clone,Copy,PartialEq)]enumInvalidType{ExpectingList}#[derive(Debug,Clone,Copy,PartialEq)]pubenumSexpError{InvalidType(InvalidType)}implSexp{pubfndelq(&self,other:Sexp) -> Result<Sexp,SexpError>{match*self{// I'm using unimplemented!() here to save space// changing the implementation here still makes some ICE.Sexp::List(ref elts) => unimplemented!(),
_ => Err(SexpError::InvalidType::ExpectingList)}}}
When an enum value is incorrectly initialized as a variant, the Rust compiler slips on ICE.
Minimal
Meta
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: