E0090: Expand error message explanation

This commit is contained in:
Sam Whited 2017-03-22 00:07:12 -05:00
parent 8e352f7d86
commit 8ea0f18d9a
1 changed files with 11 additions and 1 deletions

View File

@ -1224,7 +1224,7 @@ fn main() {
"##,
E0090: r##"
The wrong number of lifetimes were supplied. For example:
You gave too few lifetime parameters. Example:
```compile_fail,E0090
fn foo<'a: 'b, 'b: 'a>() {}
@ -1233,6 +1233,16 @@ fn main() {
foo::<'static>(); // error, expected 2 lifetime parameters
}
```
Please check you give the right number of lifetime parameters. Example:
```
fn foo<'a: 'b, 'b: 'a>() {}
fn main() {
foo::<'static, 'static>();
}
```
"##,
E0091: r##"