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
use std::fmt;use std::fmt::{Display,Debug};use std::error::Error;enumPartError{UnknownPart(str),ForbiddenGlyph(char),}implErrorforPartError{fndescription(&self) -> &str{match*self{PartError::UnknownPart(_) => "the name of part is unknown",PartError::ForbiddenGlyph(_) => "the glyph is on a forbidden range",}}}implDisplayforPartError{fnfmt(&self,f:&mut fmt::Formatter) -> fmt::Result{write!(f,"{}",self)}}implDebugforPartError{fnfmt(&self,f:&mut fmt::Formatter) -> fmt::Result{write!(f,"{}",self)}}fnmain(){}
I expected to see this happen:
error: internal compiler error: ../src/librustc_trans/type_of.rs:178:Unexpected tail in unsized_info_ty:PartError for ty=PartError
note: the compiler unexpectedly panicked.this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
thread 'rustc' panicked at 'Box<Any>', ../src/librustc_errors/lib.rs:634
note:Run with `RUST_BACKTRACE=1` for a backtrace.
The text was updated successfully, but these errors were encountered:
Hello, I repport this issue.
I tried this code:
I expected to see this happen:
The text was updated successfully, but these errors were encountered: