]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/parser/issue-14303-path.stderr
Move generic arg / param validation to `create_substs_for_generic_args`
[rust.git] / src / test / ui / parser / issue-14303-path.stderr
index fb4fb32e11e50021d11fdf0841ec59a09d1ac0a1..841e63ecbe9d5128c40f5d27ebed08470bc57375 100644 (file)
@@ -1,14 +1,9 @@
-error: lifetime parameters must be declared prior to type parameters
-  --> $DIR/issue-14303-path.rs:10:40
+error[E0747]: type provided when a lifetime was expected
+  --> $DIR/issue-14303-path.rs:10:37
    |
 LL | fn bar<'a, 'b, 'c, T>(x: foo::X<'a, T, 'b, 'c>) {}
-   |                                        ^^  ^^ must be declared prior to type parameters
-   |                                        |
-   |                                        must be declared prior to type parameters
-help: move the lifetime parameters prior to the first type parameter
-   |
-LL | fn bar<'a, 'b, 'c, T>(x: foo::X<'a, 'b, 'c, T>) {}
-   |                                     ^^^ ^^^ --
+   |                                     ^
 
 error: aborting due to previous error
 
+For more information about this error, try `rustc --explain E0747`.