about summary refs log tree commit diff
path: root/tests/ui/impl-trait/rpit/const_check_false_cycle.rs
blob: d4ea0e3b147851150dd82b6f7f3b7e269115fc2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! This test caused a cycle error when checking whether the
//! return type is `Freeze` during const checking, even though
//! the information is readily available.

//@ revisions: current next
//@[next] compile-flags: -Znext-solver
//@ check-pass

const fn f() -> impl Eq {
    g()
}
const fn g() {}

fn main() {}