diff options
| author | Michael Howell <michael@notriddle.com> | 2021-09-28 10:57:34 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-28 10:57:34 -0700 |
| commit | 8a7c1306b43895a97c0675c6d854afa468a22aad (patch) | |
| tree | 578d0cde4198e47ad44b215889b473939b2f809f | |
| parent | d8e9db0dcf0fc5cd6585a86145bfed5ea3c55031 (diff) | |
| download | rust-8a7c1306b43895a97c0675c6d854afa468a22aad.tar.gz rust-8a7c1306b43895a97c0675c6d854afa468a22aad.zip | |
Use less verbose syntax for error annotations
Co-authored-by: Esteban Kuber <estebank@users.noreply.github.com>
| -rw-r--r-- | src/test/ui/const-generics/parser-error-recovery/issue-89013.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/ui/const-generics/parser-error-recovery/issue-89013.rs b/src/test/ui/const-generics/parser-error-recovery/issue-89013.rs index d5ded44188a..99f3549d9ac 100644 --- a/src/test/ui/const-generics/parser-error-recovery/issue-89013.rs +++ b/src/test/ui/const-generics/parser-error-recovery/issue-89013.rs @@ -7,10 +7,10 @@ struct Bar; 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] } |
