about summary refs log tree commit diff
path: root/tests/ui/const-generics/min_const_generics/macro-fail.rs
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-10-31 13:45:26 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2024-01-09 21:08:16 +0000
commit0978f6e010e0eb3dddfa2a1a374ae5567e1f7f4c (patch)
tree088de30be238d47fcc5889f5e5eae9298366e92b /tests/ui/const-generics/min_const_generics/macro-fail.rs
parentbe00c5a9b89161b7f45ba80340f709e8e41122f9 (diff)
downloadrust-0978f6e010e0eb3dddfa2a1a374ae5567e1f7f4c.tar.gz
rust-0978f6e010e0eb3dddfa2a1a374ae5567e1f7f4c.zip
Avoid silencing relevant follow-up errors
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.rs3
1 files changed, 3 insertions, 0 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 7fb69032e6f..f3df96d468c 100644
--- a/tests/ui/const-generics/min_const_generics/macro-fail.rs
+++ b/tests/ui/const-generics/min_const_generics/macro-fail.rs
@@ -14,6 +14,7 @@ impl<const N: usize> Marker<N> for Example<N> {}
 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
 }
 
 fn from_marker(_: impl Marker<{
@@ -33,7 +34,9 @@ fn main() {
   }>;
 
   let _fail = Example::<external_macro!()>;
+  //~^ ERROR: type provided when a constant was expected
 
   let _fail = Example::<gimme_a_const!()>;
   //~^ ERROR unexpected end of macro invocation
+  //~| ERROR: type provided when a constant was expected
 }