Skip to content

ICE: expected type for param #0 in [N/#0] #151027

Closed

Description

@matthiaskrgr

Code

struct S<const N: usize>;
impl<const N: usize> S<N> {
    #[type_const]
    const LEN: usize = 1;
    fn arr() {
        [8; Self::LEN]
    }
}

pub fn main() {}

Meta

rustc --version --verbose:

rustc 1.94.0-nightly (aefa10405 2026-01-12)
binary: rustc
commit-hash: aefa10405d7b67b3780027484cb02c85d3a3bf36
commit-date: 2026-01-12
host: x86_64-unknown-linux-gnu
release: 1.94.0-nightly
LLVM version: 21.1.8

Error output

error[E0658]: the `#[type_const]` attribute is an experimental feature
 --> code.rs:3:5
  |
3 |     #[type_const]
  |     ^^^^^^^^^^^^^
  |
  = note: see issue #132980 <https://github.com/rust-lang/rust/issues/132980> for more information
  = help: add `#![feature(min_generic_const_args)]` to the crate attributes to enable
  = note: this compiler was built on 2026-01-12; consider upgrading it if it is out of date
Backtrace

error: internal compiler error: /rustc-dev/aefa10405d7b67b3780027484cb02c85d3a3bf36/compiler/rustc_middle/src/ty/generic_args.rs:54:14: expected type for param #0 in [N/#0]


thread 'rustc' (1582877) panicked at /rustc-dev/aefa10405d7b67b3780027484cb02c85d3a3bf36/compiler/rustc_middle/src/ty/generic_args.rs:54:14:
Box<dyn Any>
stack backtrace:
   0:     0x7f4b192463b3 - <<std[7a685385707270fb]::sys::backtrace::BacktraceLock>::print::DisplayBacktrace as core[61b332aa98023c5c]::fmt::Display>::fmt
   1:     0x7f4b1980fb48 - core[61b332aa98023c5c]::fmt::write
   2:     0x7f4b1925cda6 - <std[7a685385707270fb]::sys::stdio::unix::Stderr as std[7a685385707270fb]::io::Write>::write_fmt
   3:     0x7f4b1921c428 - std[7a685385707270fb]::panicking::default_hook::{closure#0}
   4:     0x7f4b19239ae3 - std[7a685385707270fb]::panicking::default_hook
   5:     0x7f4b1821ba5a - std[7a685385707270fb]::panicking::update_hook::<alloc[e7bb50f96aecfa7e]::boxed::Box<rustc_driver_impl[dde4f1b161f134f5]::install_ice_hook::{closure#1}>>::{closure#0}
   6:     0x7f4b19239dc2 - std[7a685385707270fb]::panicking::panic_with_hook
   7:     0x7f4b18258741 - std[7a685385707270fb]::panicking::begin_panic::<rustc_errors[fe9d00ab7b1a237c]::ExplicitBug>::{closure#0}
   8:     0x7f4b18248b26 - std[7a685385707270fb]::sys::backtrace::__rust_end_short_backtrace::<std[7a685385707270fb]::panicking::begin_panic<rustc_errors[fe9d00ab7b1a237c]::ExplicitBug>::{closure#0}, !>
   9:     0x7f4b182487ff - std[7a685385707270fb]::panicking::begin_panic::<rustc_errors[fe9d00ab7b1a237c]::ExplicitBug>
  10:     0x7f4b18276441 - <rustc_errors[fe9d00ab7b1a237c]::diagnostic::BugAbort as rustc_errors[fe9d00ab7b1a237c]::diagnostic::EmissionGuarantee>::emit_producing_guarantee
  11:     0x7f4b18829029 - rustc_middle[f41928511b683689]::util::bug::opt_span_bug_fmt::<rustc_span[bb222c012431270a]::span_encoding::Span>::{closure#0}
  12:     0x7f4b188291b2 - rustc_middle[f41928511b683689]::ty::context::tls::with_opt::<rustc_middle[f41928511b683689]::util::bug::opt_span_bug_fmt<rustc_span[bb222c012431270a]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  13:     0x7f4b1881a7db - rustc_middle[f41928511b683689]::ty::context::tls::with_context_opt::<rustc_middle[f41928511b683689]::ty::context::tls::with_opt<rustc_middle[f41928511b683689]::util::bug::opt_span_bug_fmt<rustc_span[bb222c012431270a]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  14:     0x7f4b161a8f64 - rustc_middle[f41928511b683689]::util::bug::bug_fmt
  15:     0x7f4b1b8e24d8 - <&rustc_middle[f41928511b683689]::ty::list::RawList<(), rustc_middle[f41928511b683689]::ty::generic_args::GenericArg> as rustc_type_ir[4398726041082064]::inherent::GenericArgs<rustc_middle[f41928511b683689]::ty::context::TyCtxt>>::type_at.cold
  16:     0x7f4b1906e945 - rustc_trait_selection[df4e03973cb6af8]::traits::project::compute_inherent_assoc_term_args
  17:     0x7f4b1906c8c9 - rustc_trait_selection[df4e03973cb6af8]::traits::project::normalize_inherent_projection
  18:     0x7f4b19131c5d - rustc_traits[10456ccf4a2cc282]::normalize_projection_ty::normalize_canonicalized_inherent_projection
  19:     0x7f4b18c39e11 - rustc_query_impl[92de86bbf6a30d7a]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[92de86bbf6a30d7a]::query_impl::normalize_canonicalized_inherent_projection::dynamic_query::{closure#2}::{closure#0}, rustc_middle[f41928511b683689]::query::erase::Erased<[u8; 8usize]>>
  20:     0x7f4b18d43e33 - <rustc_query_impl[92de86bbf6a30d7a]::query_impl::normalize_canonicalized_inherent_projection::dynamic_query::{closure#2} as core[61b332aa98023c5c]::ops::function::FnOnce<(rustc_middle[f41928511b683689]::ty::context::TyCtxt, rustc_type_ir[4398726041082064]::canonical::CanonicalQueryInput<rustc_middle[f41928511b683689]::ty::context::TyCtxt, rustc_middle[f41928511b683689]::ty::ParamEnvAnd<rustc_type_ir[4398726041082064]::predicate::AliasTerm<rustc_middle[f41928511b683689]::ty::context::TyCtxt>>>)>>::call_once
  21:     0x7f4b19f286e5 - rustc_query_system[2182470d59733900]::query::plumbing::try_execute_query::<rustc_query_impl[92de86bbf6a30d7a]::DynamicConfig<rustc_query_system[2182470d59733900]::query::caches::DefaultCache<rustc_type_ir[4398726041082064]::canonical::CanonicalQueryInput<rustc_middle[f41928511b683689]::ty::context::TyCtxt, rustc_middle[f41928511b683689]::ty::ParamEnvAnd<rustc_type_ir[4398726041082064]::predicate::AliasTerm<rustc_middle[f41928511b683689]::ty::context::TyCtxt>>>, rustc_middle[f41928511b683689]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[92de86bbf6a30d7a]::plumbing::QueryCtxt, false>
  22:     0x7f4b18cc0b92 - rustc_query_impl[92de86bbf6a30d7a]::query_impl::normalize_canonicalized_inherent_projection::get_query_non_incr::__rust_end_short_backtrace
  23:     0x7f4b199e458b - <rustc_trait_selection[df4e03973cb6af8]::traits::query::normalize::QueryNormalizer>::try_fold_free_or_assoc
  24:     0x7f4b199de0c7 - <rustc_trait_selection[df4e03973cb6af8]::traits::query::normalize::QueryNormalizer as rustc_type_ir[4398726041082064]::fold::FallibleTypeFolder<rustc_middle[f41928511b683689]::ty::context::TyCtxt>>::try_fold_const
  25:     0x7f4b199daec8 - <rustc_traits[10456ccf4a2cc282]::normalize_erasing_regions::provide::{closure#0} as core[61b332aa98023c5c]::ops::function::FnOnce<(rustc_middle[f41928511b683689]::ty::context::TyCtxt, rustc_middle[f41928511b683689]::ty::PseudoCanonicalInput<rustc_middle[f41928511b683689]::ty::generic_args::GenericArg>)>>::call_once
  26:     0x7f4b199da2a0 - rustc_query_impl[92de86bbf6a30d7a]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[92de86bbf6a30d7a]::query_impl::try_normalize_generic_arg_after_erasing_regions::dynamic_query::{closure#2}::{closure#0}, rustc_middle[f41928511b683689]::query::erase::Erased<[u8; 8usize]>>
  27:     0x7f4b199d94cd - rustc_query_system[2182470d59733900]::query::plumbing::try_execute_query::<rustc_query_impl[92de86bbf6a30d7a]::DynamicConfig<rustc_query_system[2182470d59733900]::query::caches::DefaultCache<rustc_middle[f41928511b683689]::ty::PseudoCanonicalInput<rustc_middle[f41928511b683689]::ty::generic_args::GenericArg>, rustc_middle[f41928511b683689]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[92de86bbf6a30d7a]::plumbing::QueryCtxt, false>
  28:     0x7f4b199d9198 - rustc_query_impl[92de86bbf6a30d7a]::query_impl::try_normalize_generic_arg_after_erasing_regions::get_query_non_incr::__rust_end_short_backtrace
  29:     0x7f4b1aad2334 - <rustc_middle[f41928511b683689]::ty::normalize_erasing_regions::TryNormalizeAfterErasingRegionsFolder as rustc_type_ir[4398726041082064]::fold::FallibleTypeFolder<rustc_middle[f41928511b683689]::ty::context::TyCtxt>>::try_fold_const
  30:     0x7f4b1af2ed85 - <rustc_middle[f41928511b683689]::mir::consts::Const as rustc_type_ir[4398726041082064]::fold::TypeFoldable<rustc_middle[f41928511b683689]::ty::context::TyCtxt>>::try_fold_with::<rustc_middle[f41928511b683689]::ty::normalize_erasing_regions::TryNormalizeAfterErasingRegionsFolder>.warm
  31:     0x7f4b16002074 - <rustc_mir_transform[e2270b55c1a450ed]::post_analysis_normalize::PostAnalysisNormalize as rustc_mir_transform[e2270b55c1a450ed]::pass_manager::MirPass>::run_pass
  32:     0x7f4b1980bffc - rustc_mir_transform[e2270b55c1a450ed]::run_analysis_to_runtime_passes
  33:     0x7f4b1a50d980 - rustc_mir_transform[e2270b55c1a450ed]::mir_drops_elaborated_and_const_checked
  34:     0x7f4b1a50d319 - rustc_query_impl[92de86bbf6a30d7a]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[92de86bbf6a30d7a]::query_impl::mir_drops_elaborated_and_const_checked::dynamic_query::{closure#2}::{closure#0}, rustc_middle[f41928511b683689]::query::erase::Erased<[u8; 8usize]>>
  35:     0x7f4b19a2ff77 - rustc_query_system[2182470d59733900]::query::plumbing::try_execute_query::<rustc_query_impl[92de86bbf6a30d7a]::DynamicConfig<rustc_data_structures[bbdded0d881d1712]::vec_cache::VecCache<rustc_span[bb222c012431270a]::def_id::LocalDefId, rustc_middle[f41928511b683689]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[2182470d59733900]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[92de86bbf6a30d7a]::plumbing::QueryCtxt, false>
  36:     0x7f4b19a2f609 - rustc_query_impl[92de86bbf6a30d7a]::query_impl::mir_drops_elaborated_and_const_checked::get_query_non_incr::__rust_end_short_backtrace
  37:     0x7f4b19ae85b4 - rustc_mir_transform[e2270b55c1a450ed]::mir_for_ctfe
  38:     0x7f4b19ae7d55 - rustc_query_impl[92de86bbf6a30d7a]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[92de86bbf6a30d7a]::query_impl::mir_for_ctfe::dynamic_query::{closure#2}::{closure#0}, rustc_middle[f41928511b683689]::query::erase::Erased<[u8; 8usize]>>
  39:     0x7f4b19818b86 - rustc_query_system[2182470d59733900]::query::plumbing::try_execute_query::<rustc_query_impl[92de86bbf6a30d7a]::DynamicConfig<rustc_query_system[2182470d59733900]::query::caches::DefIdCache<rustc_middle[f41928511b683689]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[92de86bbf6a30d7a]::plumbing::QueryCtxt, false>
  40:     0x7f4b1a912b35 - rustc_query_impl[92de86bbf6a30d7a]::query_impl::mir_for_ctfe::get_query_non_incr::__rust_end_short_backtrace
  41:     0x7f4b1a912572 - <rustc_const_eval[ab201d1f9853655a]::interpret::eval_context::InterpCx<rustc_const_eval[ab201d1f9853655a]::const_eval::machine::CompileTimeMachine>>::load_mir
  42:     0x7f4b1a91408a - rustc_const_eval[ab201d1f9853655a]::const_eval::eval_queries::eval_to_allocation_raw_provider
  43:     0x7f4b1a913904 - rustc_query_impl[92de86bbf6a30d7a]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[92de86bbf6a30d7a]::query_impl::eval_to_allocation_raw::dynamic_query::{closure#2}::{closure#0}, rustc_middle[f41928511b683689]::query::erase::Erased<[u8; 24usize]>>
  44:     0x7f4b1a91305d - rustc_query_system[2182470d59733900]::query::plumbing::try_execute_query::<rustc_query_impl[92de86bbf6a30d7a]::DynamicConfig<rustc_query_system[2182470d59733900]::query::caches::DefaultCache<rustc_middle[f41928511b683689]::ty::PseudoCanonicalInput<rustc_middle[f41928511b683689]::mir::interpret::GlobalId>, rustc_middle[f41928511b683689]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[92de86bbf6a30d7a]::plumbing::QueryCtxt, false>
  45:     0x7f4b1a912c07 - rustc_query_impl[92de86bbf6a30d7a]::query_impl::eval_to_allocation_raw::get_query_non_incr::__rust_end_short_backtrace
  46:     0x7f4b1a8fc485 - rustc_const_eval[ab201d1f9853655a]::const_eval::valtrees::eval_to_valtree
  47:     0x7f4b1a8fc236 - <rustc_const_eval[ab201d1f9853655a]::provide::{closure#0} as core[61b332aa98023c5c]::ops::function::FnOnce<(rustc_middle[f41928511b683689]::ty::context::TyCtxt, rustc_middle[f41928511b683689]::ty::PseudoCanonicalInput<rustc_middle[f41928511b683689]::mir::interpret::GlobalId>)>>::call_once
  48:     0x7f4b1a8fc200 - rustc_query_impl[92de86bbf6a30d7a]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[92de86bbf6a30d7a]::query_impl::eval_to_valtree::dynamic_query::{closure#2}::{closure#0}, rustc_middle[f41928511b683689]::query::erase::Erased<[u8; 16usize]>>
  49:     0x7f4b1a8fc1bb - <rustc_query_impl[92de86bbf6a30d7a]::query_impl::eval_to_valtree::dynamic_query::{closure#2} as core[61b332aa98023c5c]::ops::function::FnOnce<(rustc_middle[f41928511b683689]::ty::context::TyCtxt, rustc_middle[f41928511b683689]::ty::PseudoCanonicalInput<rustc_middle[f41928511b683689]::mir::interpret::GlobalId>)>>::call_once
  50:     0x7f4b1a21f508 - rustc_query_system[2182470d59733900]::query::plumbing::try_execute_query::<rustc_query_impl[92de86bbf6a30d7a]::DynamicConfig<rustc_query_system[2182470d59733900]::query::caches::DefaultCache<rustc_middle[f41928511b683689]::ty::PseudoCanonicalInput<rustc_middle[f41928511b683689]::mir::interpret::GlobalId>, rustc_middle[f41928511b683689]::query::erase::Erased<[u8; 16usize]>>, false, false, false>, rustc_query_impl[92de86bbf6a30d7a]::plumbing::QueryCtxt, false>
  51:     0x7f4b1a21f130 - rustc_query_impl[92de86bbf6a30d7a]::query_impl::eval_to_valtree::get_query_non_incr::__rust_end_short_backtrace
  52:     0x7f4b16549ef1 - <rustc_middle[f41928511b683689]::ty::context::TyCtxt>::const_eval_resolve_for_typeck
  53:     0x7f4b199e99a4 - rustc_trait_selection[df4e03973cb6af8]::traits::try_evaluate_const
  54:     0x7f4b199eaf63 - <rustc_trait_selection[df4e03973cb6af8]::traits::normalize::AssocTypeNormalizer as rustc_type_ir[4398726041082064]::fold::TypeFolder<rustc_middle[f41928511b683689]::ty::context::TyCtxt>>::fold_const
  55:     0x7f4b1a9d0449 - <rustc_hir_typeck[1a62780fcb7c5b2c]::fn_ctxt::FnCtxt>::normalize::<rustc_middle[f41928511b683689]::ty::consts::Const>
  56:     0x7f4b1a9cfc9c - <rustc_hir_typeck[1a62780fcb7c5b2c]::fn_ctxt::FnCtxt>::check_expr_repeat
  57:     0x7f4b19babd52 - <rustc_hir_typeck[1a62780fcb7c5b2c]::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
  58:     0x7f4b19ba453b - <rustc_hir_typeck[1a62780fcb7c5b2c]::fn_ctxt::FnCtxt>::check_expr_block
  59:     0x7f4b19baa10b - <rustc_hir_typeck[1a62780fcb7c5b2c]::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
  60:     0x7f4b19b8a985 - rustc_hir_typeck[1a62780fcb7c5b2c]::check::check_fn
  61:     0x7f4b1a5176f3 - rustc_hir_typeck[1a62780fcb7c5b2c]::typeck_with_inspect::{closure#0}
  62:     0x7f4b1a516074 - rustc_query_impl[92de86bbf6a30d7a]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[92de86bbf6a30d7a]::query_impl::typeck::dynamic_query::{closure#2}::{closure#0}, rustc_middle[f41928511b683689]::query::erase::Erased<[u8; 8usize]>>
  63:     0x7f4b19a2ff77 - rustc_query_system[2182470d59733900]::query::plumbing::try_execute_query::<rustc_query_impl[92de86bbf6a30d7a]::DynamicConfig<rustc_data_structures[bbdded0d881d1712]::vec_cache::VecCache<rustc_span[bb222c012431270a]::def_id::LocalDefId, rustc_middle[f41928511b683689]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[2182470d59733900]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[92de86bbf6a30d7a]::plumbing::QueryCtxt, false>
  64:     0x7f4b19a2f849 - rustc_query_impl[92de86bbf6a30d7a]::query_impl::typeck::get_query_non_incr::__rust_end_short_backtrace
  65:     0x7f4b1a22fe33 - <rustc_middle[f41928511b683689]::ty::context::TyCtxt>::par_hir_body_owners::<rustc_hir_analysis[49f5e1bf97556dfe]::check_crate::{closure#2}>::{closure#0}
  66:     0x7f4b1a22f844 - rustc_hir_analysis[49f5e1bf97556dfe]::check_crate
  67:     0x7f4b19a2a0db - rustc_interface[16637161417a674e]::passes::analysis
  68:     0x7f4b19a29d27 - rustc_query_impl[92de86bbf6a30d7a]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[92de86bbf6a30d7a]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[f41928511b683689]::query::erase::Erased<[u8; 0usize]>>
  69:     0x7f4b1a9d1d26 - rustc_query_system[2182470d59733900]::query::plumbing::try_execute_query::<rustc_query_impl[92de86bbf6a30d7a]::DynamicConfig<rustc_query_system[2182470d59733900]::query::caches::SingleCache<rustc_middle[f41928511b683689]::query::erase::Erased<[u8; 0usize]>>, false, false, false>, rustc_query_impl[92de86bbf6a30d7a]::plumbing::QueryCtxt, false>
  70:     0x7f4b1a9d1a88 - rustc_query_impl[92de86bbf6a30d7a]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  71:     0x7f4b1abb8ad4 - <rustc_interface[16637161417a674e]::passes::create_and_enter_global_ctxt<core[61b332aa98023c5c]::option::Option<rustc_interface[16637161417a674e]::queries::Linker>, rustc_driver_impl[dde4f1b161f134f5]::run_compiler::{closure#0}::{closure#2}>::{closure#2} as core[61b332aa98023c5c]::ops::function::FnOnce<(&rustc_session[26ef460f5112744f]::session::Session, rustc_middle[f41928511b683689]::ty::context::CurrentGcx, alloc[e7bb50f96aecfa7e]::sync::Arc<rustc_data_structures[bbdded0d881d1712]::jobserver::Proxy>, &std[7a685385707270fb]::sync::once_lock::OnceLock<rustc_middle[f41928511b683689]::ty::context::GlobalCtxt>, &rustc_data_structures[bbdded0d881d1712]::sync::worker_local::WorkerLocal<rustc_middle[f41928511b683689]::arena::Arena>, &rustc_data_structures[bbdded0d881d1712]::sync::worker_local::WorkerLocal<rustc_hir[91510438fa6d713e]::Arena>, rustc_driver_impl[dde4f1b161f134f5]::run_compiler::{closure#0}::{closure#2})>>::call_once::{shim:vtable#0}
  72:     0x7f4b1aa228d8 - rustc_interface[16637161417a674e]::interface::run_compiler::<(), rustc_driver_impl[dde4f1b161f134f5]::run_compiler::{closure#0}>::{closure#1}
  73:     0x7f4b1a996b4e - std[7a685385707270fb]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[16637161417a674e]::util::run_in_thread_with_globals<rustc_interface[16637161417a674e]::util::run_in_thread_pool_with_globals<rustc_interface[16637161417a674e]::interface::run_compiler<(), rustc_driver_impl[dde4f1b161f134f5]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
  74:     0x7f4b1a996920 - <std[7a685385707270fb]::thread::lifecycle::spawn_unchecked<rustc_interface[16637161417a674e]::util::run_in_thread_with_globals<rustc_interface[16637161417a674e]::util::run_in_thread_pool_with_globals<rustc_interface[16637161417a674e]::interface::run_compiler<(), rustc_driver_impl[dde4f1b161f134f5]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[61b332aa98023c5c]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  75:     0x7f4b1a998738 - <std[7a685385707270fb]::sys::thread::unix::Thread>::new::thread_start
  76:     0x7f4b1429698b - <unknown>
  77:     0x7f4b1431a9cc - <unknown>
  78:                0x0 - <unknown>

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: please make sure that you have updated to the latest nightly

note: please attach the file at `/home/matthias/vcs/github/CRED/rustc-ice-2026-01-12T20_37_21-1582858.txt` to your bug report

note: rustc 1.94.0-nightly (aefa10405 2026-01-12) running on x86_64-unknown-linux-gnu

query stack during panic:
panicked at /rustc-dev/aefa10405d7b67b3780027484cb02c85d3a3bf36/compiler/rustc_middle/src/ty/generic_args.rs:54:14:

thread panicked while processing panic. aborting.

Activity

  1. added
    I-ICE
    T-compiler
    C-bug
    F-gca_min_const_items
    on Jan 12, 2026
  2. added
    needs-triage
    on Jan 12, 2026
  3. reddevilmidzy commented on Jan 13, 2026

    @reddevilmidzy
    Member

    Similar with #138226
    With the min_generic_const_args and inherent_associated_types feature flags enabled, ICE was only reproduced in rustc dev, but when the feature flag was removed, it seems to be reproduced in nightly as well.

  4. removed
    needs-triage
    on Jan 13, 2026
  5. added a commit that references this issue on Feb 6, 2026
    a9b4c7c
  6. added a commit that references this issue on Feb 6, 2026
    6838873
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugF-gca_min_const_itemsI-ICET-compiler

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions