Closed
Description
Code
enum TestOption<T> {
TestSome(T),
TestSome(),
}
pub struct Request {
bar: TestOption<u64>,
bar: u8,
}
fn default_instance() -> &'static Request {
static instance: Request = Request { bar: 17 };
&instance
}
pub fn main() {}
Meta
rustc --version --verbose
:
<version>
Error output
<output>
Metadata
Metadata
Assignees
Labels
Area: Constant evaluation, covers all const contexts (static, const fn, ...)Category: This is a bug.Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Status: A Minimal Complete and Verifiable Example has been found for this issueRelevant to the compiler team, which will review and decide on the PR/issue.This issue requires a build of rustc or tooling with debug-assertions in some way
Type
Projects
Status
Done