Closed
Description
I'm seeing an internal compiler error on the following input (found by fuzz-rustc):
const e = & & 39;
pub fn main(){}
$ rustc main.rs
error: missing type for `const` item
--> main.rs:1:7
|
1 | const e = & & 39;
| ^ help: provide a type for the item: `e: &&i32`
error: internal compiler error: src/librustc_infer/infer/lexical_region_resolve/mod.rs:497: cannot relate region: LUB(ReErased, ReErased)
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:880:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
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.44.0-nightly (211365947 2020-03-30) running on x86_64-unknown-linux-gnu
error: aborting due to 2 previous errors
Metadata
Metadata
Assignees
Labels
Area: Messages for errors, warnings, and lintsArea: Lifetimes / regionsCategory: This is a bug.Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️High priorityRelevant to the compiler team, which will review and decide on the PR/issue.Performance or correctness regression from stable to nightly.