Add high-priority ICE: 150263

This commit is contained in:
Padraic Fanning
2026-03-02 21:36:26 -05:00
parent 141b0d8757
commit 3ea17bec62
+21
View File
@@ -0,0 +1,21 @@
//@ known-bug: #150263
//@ compile-flags: --crate-type lib
pub trait Scope {
type Timestamp;
}
impl<G> Scope for G {
type Timestamp = ();
}
pub fn create<G: Scope>() {
enter::<G>();
}
fn enter<G>() {
unary::<G>(|_: <G as Scope>::Timestamp| {});
}
fn unary<G: Scope>(constructor: impl FnOnce(G::Timestamp)) {
constructor(None.unwrap());
}