Skip to content

Commit

Permalink
E0090: Expand error message explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
SamWhited committed Mar 22, 2017
1 parent 8e352f7 commit 8ea0f18
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/librustc_typeck/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>() {}
Expand All @@ -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##"
Expand Down

0 comments on commit 8ea0f18

Please sign in to comment.