]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/fn-pattern-expected-type.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / fn-pattern-expected-type.rs
index 450e2a70aab9b91e309cd103c6960cf5eebcef65..24bf1f94d887b49fe156fe0bbb8e0e85d2ab97c8 100644 (file)
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 pub fn main() {
-    let f: &fn((int,int)) = |(x, y)| {
+    let f = |&: (x, y): (int, int)| {
         assert_eq!(x, 1);
         assert_eq!(y, 2);
     };