Files
Padraic Fanning 13a5c24606 Fix compile flags
2026-03-09 18:51:25 -04:00

22 lines
377 B
Rust

//@ known-bug: #150263
//@ compile-flags: --crate-type lib -C opt-level=3
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());
}