]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/const-generics/min_const_generics/macro-fail.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / const-generics / min_const_generics / macro-fail.rs
index f83518fc9d4763afd152e38e632577abead52f44..7fb69032e6fc48b2e4cd6fc8a3accde632b753ef 100644 (file)
@@ -14,7 +14,6 @@ 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<{
@@ -34,9 +33,7 @@ fn main() {
   }>;
 
   let _fail = Example::<external_macro!()>;
-  //~^ ERROR: type provided when a constant was expected
 
   let _fail = Example::<gimme_a_const!()>;
-  //~^ ERROR: type provided when a constant was expected
-  //~| ERROR unexpected end of macro invocation
+  //~^ ERROR unexpected end of macro invocation
 }