mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 09:53:04 +03:00
Add high-priority ICE: 150263
This commit is contained in:
@@ -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());
|
||||
}
|
||||
Reference in New Issue
Block a user