about summary refs log tree commit diff
path: root/src/test/parse-fail/lifetime-in-pattern.rs
AgeCommit message (Collapse)AuthorLines
2018-10-21Move parse-fail tests to UIVadim Petrochenkov-16/+0
2015-10-25libsyntax: better error for lifetimes in patternsKevin Butler-0/+16
Previously, if you copied a signature from a trait definition such as: ``` fn foo<'a>(&'a Bar) -> bool {} ``` and moved it into an `impl`, there would be an error message: "unexpected token `'a`" Adding to the error message that a pattern is expected should help users to find the actual problem with using a lifetime here.