Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
E0090: Expand error message explanation
  • Loading branch information
SamWhited committed Mar 22, 2017
commit 8ea0f18d9a3bdf001be8d668818b8291dd2b37df
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