]> git.lizzy.rs Git - rust.git/commitdiff
E0090: Add explanation for error message
authorSam Whited <sam@samwhited.com>
Wed, 22 Mar 2017 01:15:55 +0000 (20:15 -0500)
committerSam Whited <sam@samwhited.com>
Wed, 22 Mar 2017 01:15:55 +0000 (20:15 -0500)
See #32777

src/librustc_typeck/diagnostics.rs

index 644e323a8dbf2ce1d6d86cacf4912693d697c228..2d24b1fb4f20a98e54935e8a2d58ccfc64b20ddf 100644 (file)
@@ -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:
@@ -4120,7 +4132,6 @@ fn main() { }
 //  E0068,
 //  E0085,
 //  E0086,
-    E0090,
     E0103, // @GuillaumeGomez: I was unable to get this error, try your best!
     E0104,
 //  E0123,