summaryrefslogtreecommitdiffstats
path: root/src/test/ui/const-generics/const-param-before-other-params.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/const-generics/const-param-before-other-params.stderr')
-rw-r--r--src/test/ui/const-generics/const-param-before-other-params.stderr8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/const-generics/const-param-before-other-params.stderr b/src/test/ui/const-generics/const-param-before-other-params.stderr
new file mode 100644
index 000000000..607d20c4a
--- /dev/null
+++ b/src/test/ui/const-generics/const-param-before-other-params.stderr
@@ -0,0 +1,8 @@
+error: lifetime parameters must be declared prior to const parameters
+ --> $DIR/const-param-before-other-params.rs:1:21
+ |
+LL | fn bar<const X: u8, 'a>(_: &'a ()) {
+ | --------------^^- help: reorder the parameters: lifetimes, then consts and types: `<'a, const X: u8>`
+
+error: aborting due to previous error
+