]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-15034.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / issues / issue-15034.rs
1 pub struct Lexer<'a> {
2 input: &'a str,
3 }
4
5 impl<'a> Lexer<'a> {
6 pub fn new(input: &'a str) -> Lexer<'a> {
7 Lexer { input: input }
8 }
9 }
10
11 struct Parser<'a> {
12 lexer: &'a mut Lexer<'a>,
13 }
14
15 impl<'a> Parser<'a> {
16 pub fn new(lexer: &'a mut Lexer) -> Parser<'a> {
17 Parser { lexer: lexer }
18 //~^ ERROR explicit lifetime required in the type of `lexer` [E0621]
19 }
20 }
21
22 fn main() {}