about summary refs log tree commit diff
path: root/src/test/compile-fail/method-call-err-msg.rs
AgeCommit message (Collapse)AuthorLines
2017-10-13Pass the full span for method callsGeoffry Song-38/+0
2017-06-04Separate suggestion in a `help` and a `note`Esteban Küber-0/+1
2016-12-01Point arg num mismatch errors back to their definitionJonathan Turner-3/+5
2016-09-04E0060 and E0061 improvementGuillaume Gomez-2/+1
2016-08-04Fixes for issues #35215 and #35216William Lee-0/+3
2016-06-15Show types of all args when missing argsEsteban Küber-0/+3
When there're missing arguments in a function call, present a list of all the expected types: ```rust fn main() { t(""); } fn t(a: &str, x: String) {} ``` ```bash % rustc file.rs file.rs:3:5: 2:8 error: this function takes 2 parameters but 0 parameters were supplied [E0061] file.rs:3 t(); ^~~ file.rs:3:5: 2:8 help: run `rustc --explain E0061` to see a detailed explanation file.rs:3:5: 2:8 note: the following parameter types were expected: &str, std::string::String error: aborting due to previous error ``` Fixes #33649
2015-05-13Fix ICE that occurs when an associated const is ambiguous.Sean Patrick Santos-1/+1
Also change several error messages to refer to "items" rather than "methods", since associated items that require resolution during type checking are not always methods.
2015-01-08Update compile fail tests to use isize.Huon Wilson-2/+2
2014-04-24Calibrate span for method call error messagesEdward Wang-0/+30
Specifically, the method parameter cardinality mismatch or missing method error message span now gets method itself exactly. It was the whole expression. Closes #9390 Closes #13684 Closes #13709