blob: 3cc537440977c09f96c24c6765d5f1d979d14f60 [file] [log] [blame]
// Test that an `impl Trait` type that expands to itself is an error.
#![allow(unconditional_recursion)]
fn test() -> impl Sized {
//~^ ERROR E0720
test()
}
fn main() {}