rust/tests/ui/impl-trait/rpit/const_check_false_cycle.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
316 B
Rust
Raw Normal View History

//! 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
//@ check-pass
2024-03-08 00:36:37 -06:00
const fn f() -> impl Eq {
g()
}
const fn g() {}
fn main() {}