Closed
Description
I'm not sure if the cause of this problem is exactly the same as #49470
fn main() -> Result<(), Box<Option<&'static str>>> {
Err(Box::new(None))
}
and I got that:
error: internal compiler error: unexpected panic
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
note: rustc 1.26.0-nightly (e5277c145 2018-03-28) running on x86_64-unknown-linux-gnu
note: compiler flags: -C codegen-units=1 -C debuginfo=2 --crate-type bin
note: some of the compiler flags provided by cargo are hidden