Fix pretty printer when there are multiple lifetime parameters
This commit is contained in:
parent
98f79735c3
commit
044dec4cf5
2 changed files with 14 additions and 7 deletions
|
|
@ -27,7 +27,7 @@ fn use_<'short,'long>(c: Invariant<'long>,
|
|||
// 'short <= 'long, this would be true if the Invariant type were
|
||||
// contravariant with respect to its parameter 'a.
|
||||
|
||||
let _: Invariant<'short> = c; //~ ERROR lifetime mistach
|
||||
let _: Invariant<'short> = c; //~ ERROR mismatched types
|
||||
}
|
||||
|
||||
fn main() { }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue