blob: 0ad6e7a6f6014fb46a86047188da1a7cd0bac8a9 [file] [log] [blame]
//! We evaluate `1 + 2` with `Reveal::All` during typeck, causing
//! us to to get the concrete type of `Bar` while computing it.
//! This again requires type checking `foo`.
#![feature(type_alias_impl_trait)]
type Bar = impl Sized;
//~^ ERROR: cycle
//~| ERROR: cycle
fn foo() -> Bar
where
Bar: Send,
{
[0; 1 + 2]
}
fn main() {}