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.rs5
1 files changed, 2 insertions, 3 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 5b98b6c518d..f1be90cf2e4 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
@@ -4,9 +4,8 @@
 #![cfg_attr(min, feature(min_const_generics))]
 
 fn bar<const X: (), 'a>(_: &'a ()) {
-    //[full]~^ ERROR lifetime parameters must be declared prior to const parameters
-    //[min]~^^ ERROR lifetime parameters must be declared prior to const parameters
-    //[min]~^^^ ERROR `()` is forbidden as the type of a const generic parameter
+    //~^ ERROR lifetime parameters must be declared prior to const parameters
+    //[min]~^^ ERROR `()` is forbidden as the type of a const generic parameter
 }
 
 fn foo<const X: (), T>(_: &T) {}