Skip to content

Commit 8e352f7

Browse files
committed
E0090: Add explanation for error message
See #32777
1 parent cab4bff commit 8e352f7

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/librustc_typeck/diagnostics.rs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1223,6 +1223,18 @@ fn main() {
12231223
```
12241224
"##,
12251225

1226+
E0090: r##"
1227+
The wrong number of lifetimes were supplied. For example:
1228+
1229+
```compile_fail,E0090
1230+
fn foo<'a: 'b, 'b: 'a>() {}
1231+
1232+
fn main() {
1233+
foo::<'static>(); // error, expected 2 lifetime parameters
1234+
}
1235+
```
1236+
"##,
1237+
12261238
E0091: r##"
12271239
You gave an unnecessary type parameter in a type alias. Erroneous code
12281240
example:
@@ -4120,7 +4132,6 @@ register_diagnostics! {
41204132
// E0068,
41214133
// E0085,
41224134
// E0086,
4123-
E0090,
41244135
E0103, // @GuillaumeGomez: I was unable to get this error, try your best!
41254136
E0104,
41264137
// E0123,

0 commit comments

Comments
 (0)