2 // The const-evaluator was at one point ICE'ing while trying to
3 // evaluate the body of `fn id` during the `s.id()` call in main.
8 const ID: fn(&S<T>) -> &S<T> = |s| s;
9 pub fn id(&self) -> &Self {
10 Self::ID(self) // This, plus call below ...
16 assert!(S::<u32>::ID(&s).0 == 10); // Works fine
17 assert!(s.id().0 == 10); // ... causes compiler to panic