]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/recursive-impl-trait-type-direct.rs
Rollup merge of #65792 - Centril:split-syntax-2, r=petrochenkov
[rust.git] / src / test / ui / impl-trait / recursive-impl-trait-type-direct.rs
1 // Test that an `impl Trait` type that expands to itself is an error.
2
3 fn test() -> impl Sized { //~ ERROR E0720
4     test()
5 }
6
7 fn main() {}