about summary refs log tree commit diff
path: root/src/test/ui/const-generics/const-param-before-other-params.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/const-generics/const-param-before-other-params.rs')
-rw-r--r--src/test/ui/const-generics/const-param-before-other-params.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/const-generics/const-param-before-other-params.rs b/src/test/ui/const-generics/const-param-before-other-params.rs
index da06aca308e..cb1cebe1f68 100644
--- a/src/test/ui/const-generics/const-param-before-other-params.rs
+++ b/src/test/ui/const-generics/const-param-before-other-params.rs
@@ -1,5 +1,5 @@
 fn bar<const X: u8, 'a>(_: &'a ()) {
-    //~^ ERROR lifetime parameters must be declared prior to const parameters
+    //~^ ERROR lifetime parameters must be declared prior to type and const parameters
 }
 
 fn foo<const X: u8, T>(_: &T) {}