Open
Description
auto-reduced (treereduce-rust):
fn foo(-128..=127: u128) {}
original:
// Regression test for the ICE described in #82328. The pretty-printer for
// `-Zunpretty=hir,typed` would previously retrieve type-checking results
// when entering a body, which means that type information was not available
// for expressions occurring in function signatures, as in the `foo` example
//~^ ERROR the trait alias `SelfInput` is not dyn compatible [E0038]
//@ check-pass
//@ compile-flags: -Zunpretty=hir,typed
#![allow(dead_code)]
fn main() {}
fn foo(-128..=127: u128) {}
Version information
rustc 1.86.0-dev
binary: rustc
commit-hash: unknown
commit-date: unknown
host: x86_64-unknown-linux-gnu
release: 1.86.0-dev
LLVM version: 19.1.7
Possibly related line of code:
rust/compiler/rustc_mir_build/src/thir/pattern/mod.rs
Lines 231 to 243 in 534d79a
Command:
/home/gh-matthiaskrgr/.rustup/toolchains/local-debug-assertions/bin/rustc
Metadata
Metadata
Assignees
Labels
Area: Messages for errors, warnings, and lintsCategory: This is a bug.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.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