2024-03-08 06:39:26 -06:00
|
|
|
//! This test caused a cycle error when checking whether the
|
2024-03-08 00:36:37 -06:00
|
|
|
//! return type is `Freeze` during const checking, even though
|
|
|
|
//! the information is readily available.
|
|
|
|
|
|
|
|
//@ revisions: current next
|
|
|
|
//@[next] compile-flags: -Znext-solver
|
2024-03-08 06:39:26 -06:00
|
|
|
//@ check-pass
|
2024-03-08 00:36:37 -06:00
|
|
|
|
|
|
|
const fn f() -> impl Eq {
|
|
|
|
g()
|
|
|
|
}
|
|
|
|
const fn g() {}
|
|
|
|
|
|
|
|
fn main() {}
|