1
Fork 0

Require the parameter that will be referenced to be noted

Issue #918
This commit is contained in:
Marijn Haverbeke 2011-09-15 16:15:17 +02:00
parent 75eee8b194
commit 3abe3671bd
9 changed files with 74 additions and 38 deletions

View file

@ -215,7 +215,7 @@ fn ternary_to_if(e: @expr) -> @expr {
fn ret_by_ref(style: ret_style) -> bool {
alt style {
return_ref(_) { true }
return_ref(_, _) { true }
_ { false }
}
}