2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2015-03-22 15:13:15 -05:00
|
|
|
|
2015-03-25 19:06:52 -05:00
|
|
|
fn foo<'r>(s: &'r usize) -> bool {
|
2012-09-07 19:07:32 -05:00
|
|
|
match s {
|
2012-09-23 07:39:39 -05:00
|
|
|
&3 => true,
|
|
|
|
_ => false
|
2012-09-07 19:07:32 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-02-01 21:43:17 -06:00
|
|
|
pub fn main() {
|
2013-03-28 20:39:09 -05:00
|
|
|
assert!(foo(&3));
|
|
|
|
assert!(!foo(&4));
|
2012-09-23 07:39:39 -05:00
|
|
|
}
|