]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/regions-return-interior-of-option.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / regions-return-interior-of-option.rs
index d1530c4c7b91a13e82d7444c3b5637f1e0ee1b47..54458f0d0df0330d6ab054e3cc1d7e5da4042f5c 100644 (file)
@@ -8,10 +8,10 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-fn get<'r, T>(opt: &'r Option<T>) -> &'r T {
+fn get<T>(opt: &Option<T>) -> &T {
     match *opt {
       Some(ref v) => v,
-      None => fail!("none")
+      None => panic!("none")
     }
 }