]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/type-alias-impl-trait/field-types.rs
Auto merge of #95454 - randomicon00:fix95444, r=wesleywiser
[rust.git] / src / test / ui / type-alias-impl-trait / field-types.rs
index 91494a82d0fb201eaf492bd2932ca974aea52843..d99ed58127bd44e127e390f73958b1f9f1aaddd3 100644 (file)
@@ -1,12 +1,11 @@
 #![feature(type_alias_impl_trait)]
 #![allow(dead_code)]
 
-// FIXME This should compile, but it currently doesn't
+// check-pass
 
 use std::fmt::Debug;
 
 type Foo = impl Debug;
-//~^ ERROR: could not find defining uses
 
 struct Bar {
     foo: Foo,
@@ -14,7 +13,6 @@ struct Bar {
 
 fn bar() -> Bar {
     Bar { foo: "foo" }
-    //~^ ERROR: mismatched types [E0308]
 }
 
 fn main() {}