Skip to content

Commit

Permalink
E0090: Add explanation for error message
Browse files Browse the repository at this point in the history
See #32777
  • Loading branch information
SamWhited committed Mar 22, 2017
1 parent cab4bff commit 8e352f7
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/librustc_typeck/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1223,6 +1223,18 @@ fn main() {
```
"##,

E0090: r##"
The wrong number of lifetimes were supplied. For example:
```compile_fail,E0090
fn foo<'a: 'b, 'b: 'a>() {}
fn main() {
foo::<'static>(); // error, expected 2 lifetime parameters
}
```
"##,

E0091: r##"
You gave an unnecessary type parameter in a type alias. Erroneous code
example:
Expand Down Expand Up @@ -4120,7 +4132,6 @@ register_diagnostics! {
// E0068,
// E0085,
// E0086,
E0090,
E0103, // @GuillaumeGomez: I was unable to get this error, try your best!
E0104,
// E0123,
Expand Down

0 comments on commit 8e352f7

Please sign in to comment.