]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/type-alias-impl-trait/issue-66580-closure-coherence.rs
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / type-alias-impl-trait / issue-66580-closure-coherence.rs
index 7b3ddc7886841da8e674d20e35988fb1b8ec32fa..d97270c3124d1620574553fe6d8a91e028aefafd 100644 (file)
@@ -2,10 +2,7 @@
 // Ensures that we don't try to determine whether a closure
 // is foreign when it's the underlying type of an opaque type
 // check-pass
-// revisions: min_tait full_tait
-#![feature(min_type_alias_impl_trait)]
-#![cfg_attr(full_tait, feature(type_alias_impl_trait))]
-//[full_tait]~^ WARN incomplete
+#![feature(type_alias_impl_trait)]
 
 type Closure = impl FnOnce();
 
@@ -13,7 +10,9 @@ fn closure() -> Closure {
     || {}
 }
 
-struct Wrap<T> { f: T }
+struct Wrap<T> {
+    f: T,
+}
 
 impl Wrap<Closure> {}