]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/impl-trait/recursive-impl-trait-type-direct.rs
Auto merge of #83339 - Aaron1011:deep-recollect, r=petrochenkov
[rust.git] / src / test / ui / impl-trait / recursive-impl-trait-type-direct.rs
index 2b4f5e0975ac3d8ed9ac83915dc22733b825f525..3cc537440977c09f96c24c6765d5f1d979d14f60 100644 (file)
@@ -1,6 +1,9 @@
 // Test that an `impl Trait` type that expands to itself is an error.
 
-fn test() -> impl Sized { //~ ERROR E0720
+#![allow(unconditional_recursion)]
+
+fn test() -> impl Sized {
+    //~^ ERROR E0720
     test()
 }