]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/type-alias-impl-trait/static-const-types.rs
Auto merge of #95454 - randomicon00:fix95444, r=wesleywiser
[rust.git] / src / test / ui / type-alias-impl-trait / static-const-types.rs
index 86b685022b20ec7dd71e5b9b757c57c01253285c..748a279e43989521e548e817598db416d1643876 100644 (file)
@@ -1,13 +1,13 @@
 #![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
+type Foo = impl Debug;
 
-static FOO1: Foo = 22_u32; //~ ERROR mismatched types
-const FOO2: Foo = 22_u32; //~ ERROR mismatched types
+static FOO1: Foo = 22_u32;
+const FOO2: Foo = 22_u32;
 
 fn main() {}