about summary refs log tree commit diff
path: root/tests/ui/const-generics/min_const_generics/macro-fail.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/const-generics/min_const_generics/macro-fail.rs')
-rw-r--r--tests/ui/const-generics/min_const_generics/macro-fail.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/ui/const-generics/min_const_generics/macro-fail.rs b/tests/ui/const-generics/min_const_generics/macro-fail.rs
index 2f101ecfb1f..25726490c2c 100644
--- a/tests/ui/const-generics/min_const_generics/macro-fail.rs
+++ b/tests/ui/const-generics/min_const_generics/macro-fail.rs
@@ -16,6 +16,7 @@ fn make_marker() -> impl Marker<gimme_a_const!(marker)> {
   //~| ERROR: type provided when a constant was expected
   Example::<gimme_a_const!(marker)>
   //~^ ERROR: type provided when a constant was expected
+  //~| ERROR type annotations needed
 }
 
 fn from_marker(_: impl Marker<{
@@ -35,9 +36,11 @@ fn main() {
   }>;
 
   let _fail = Example::<external_macro!()>;
-  //~^ ERROR: type provided when a constant was expected
+  //~^ ERROR: type provided when a constant
+  //~| ERROR type annotations needed
 
   let _fail = Example::<gimme_a_const!()>;
   //~^ ERROR unexpected end of macro invocation
   //~| ERROR: type provided when a constant was expected
+  //~| ERROR type annotations needed
 }