From 3ea17bec62b190b66e9fc71ea649cd533fdf58d7 Mon Sep 17 00:00:00 2001 From: Padraic Fanning <27117322+fanninpm@users.noreply.github.com> Date: Mon, 2 Mar 2026 21:36:26 -0500 Subject: [PATCH] Add high-priority ICE: 150263 --- tests/crashes/150263.rs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/crashes/150263.rs diff --git a/tests/crashes/150263.rs b/tests/crashes/150263.rs new file mode 100644 index 000000000000..6e3b2a2f3f85 --- /dev/null +++ b/tests/crashes/150263.rs @@ -0,0 +1,21 @@ +//@ known-bug: #150263 +//@ compile-flags: --crate-type lib + +pub trait Scope { + type Timestamp; +} +impl Scope for G { + type Timestamp = (); +} + +pub fn create() { + enter::(); +} + +fn enter() { + unary::(|_: ::Timestamp| {}); +} + +fn unary(constructor: impl FnOnce(G::Timestamp)) { + constructor(None.unwrap()); +}