]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-22781.rs
Rollup merge of #62337 - Mark-Simulacrum:fix-cpu-usage-script, r=alexcrichton
[rust.git] / src / test / ui / issues / issue-22781.rs
index 5df3d88b168fabb25ae56a5463c8ede1bda00022..37f40aa0421407cc9c0a0b2048368be7ea1c4778 100644 (file)
@@ -1,10 +1,10 @@
-// compile-pass
+// build-pass (FIXME(62277): could be check-pass?)
 #![allow(unused_variables)]
 use std::collections::HashMap;
 use std::collections::hash_map::Entry::Vacant;
 
 pub fn foo() {
-    type F = Box<Fn(&()) + 'static>;
+    type F = Box<dyn Fn(&()) + 'static>;
     let mut map: HashMap<(), F> = HashMap::new();
     let x: &mut F = match map.entry(()) {
         Vacant(_) => unimplemented!(),