]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/consts/issue-37550-1.rs
Rollup merge of #94839 - TaKO8Ki:suggest-using-double-colon-for-struct-field-type...
[rust.git] / src / test / ui / consts / issue-37550-1.rs
index 35b63bddca252937d815454a2a67733e42ea658b..4d00ac7fd0d59d23c256bbfd98a3ba9881f38bb9 100644 (file)
@@ -1,6 +1,8 @@
+// check-pass
+
 const fn x() {
     let t = true;
-    let x = || t; //~ ERROR function pointer
+    let x = || t;
 }
 
 fn main() {}