File tree 2 files changed +15
-1
lines changed
librustc/middle/typeck/check
2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -1198,7 +1198,7 @@ pub fn check_expr_with_unifier(fcx: @mut FnCtxt,
1198
1198
1199
1199
tcx. sess . span_err ( sp, msg) ;
1200
1200
1201
- vec:: from_fn ( expected_arg_count , |_| ty:: mk_err ( tcx) )
1201
+ vec:: from_fn ( supplied_arg_count , |_| ty:: mk_err ( tcx) )
1202
1202
} ;
1203
1203
1204
1204
sig. output
Original file line number Diff line number Diff line change
1
+ // Copyright 2013 The Rust Project Developers. See the COPYRIGHT
2
+ // file at the top-level directory of this distribution and at
3
+ // http://rust-lang.org/COPYRIGHT.
4
+ //
5
+ // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6
+ // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7
+ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8
+ // option. This file may not be copied, modified, or distributed
9
+ // except according to those terms.
10
+
11
+ // Regresion test for issue #4935
12
+
13
+ fn foo ( a : uint ) { }
14
+ fn main ( ) { foo ( 5 , 6 ) } //~ ERROR this function takes 1 parameter but 2 parameters were supplied
You can’t perform that action at this time.
0 commit comments