]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/const-generics/const-param-before-other-params.stderr
Move generic arg / param validation to `create_substs_for_generic_args`
[rust.git] / src / test / ui / const-generics / const-param-before-other-params.stderr
index 33f981d1eba9b38c684b1dbd60095d35b90fa588..fccf732de4c9991f2f99c25d77664520692bd7a7 100644 (file)
@@ -1,9 +1,3 @@
-warning: the feature `const_generics` is incomplete and may cause the compiler to crash
-  --> $DIR/const-param-before-other-params.rs:1:12
-   |
-LL | #![feature(const_generics)]
-   |            ^^^^^^^^^^^^^^
-
 error: lifetime parameters must be declared prior to const parameters
   --> $DIR/const-param-before-other-params.rs:4:21
    |
@@ -16,5 +10,13 @@ error: type parameters must be declared prior to const parameters
 LL | fn foo<const X: (), T>(_: &T) {
    |       --------------^- help: reorder the parameters: lifetimes, then types, then consts: `<T, const X: ()>`
 
+warning: the feature `const_generics` is incomplete and may cause the compiler to crash
+  --> $DIR/const-param-before-other-params.rs:1:12
+   |
+LL | #![feature(const_generics)]
+   |            ^^^^^^^^^^^^^^
+   |
+   = note: `#[warn(incomplete_features)]` on by default
+
 error: aborting due to 2 previous errors