]> git.lizzy.rs Git - rust.git/commitdiff
Use less verbose syntax for error annotations
authorMichael Howell <michael@notriddle.com>
Tue, 28 Sep 2021 17:57:34 +0000 (10:57 -0700)
committerGitHub <noreply@github.com>
Tue, 28 Sep 2021 17:57:34 +0000 (10:57 -0700)
Co-authored-by: Esteban Kuber <estebank@users.noreply.github.com>
src/test/ui/const-generics/parser-error-recovery/issue-89013.rs

index d5ded44188a02c960242a5bd53b1ab5731af50a9..99f3549d9ac34f1c819e64256bb7acfb92a4d939 100644 (file)
@@ -7,10 +7,10 @@ trait Foo<const N: usize> {
 const T: usize = 42;
 
 impl Foo<N = const 3> for Bar {
-//~^ERROR expected lifetime, type, or constant, found keyword `const`
-//~^^ERROR cannot constrain an associated constant to a value
-//~^^^ERROR this trait takes 1 generic argument but 0 generic arguments
-//~^^^^ERROR associated type bindings are not allowed here
+//~^ ERROR expected lifetime, type, or constant, found keyword `const`
+//~ERROR cannot constrain an associated constant to a value
+//~ERROR this trait takes 1 generic argument but 0 generic arguments
+//~ERROR associated type bindings are not allowed here
     fn do_x(&self) -> [u8; 3] {
         [0u8; 3]
     }