]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/issue-15444.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / issue-15444.rs
index f5618c2c7a3c40a1d2aa075664a1a04499d2eafb..0f4978d78dd86700d0961236461cb6a7ca632250 100644 (file)
@@ -25,5 +25,6 @@ fn thing(a: int, b: int) -> int {
 }
 
 fn main() {
+    let thing: fn(int, int) -> int = thing; // coerce to fn type
     bar(&thing);
 }