Skip to content

Commit 8a7c130

Browse files
notriddleestebank
andauthored
Use less verbose syntax for error annotations
Co-authored-by: Esteban Kuber <estebank@users.noreply.github.com>
1 parent d8e9db0 commit 8a7c130

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/ui/const-generics/parser-error-recovery/issue-89013.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ struct Bar;
77
const T: usize = 42;
88

99
impl Foo<N = const 3> for Bar {
10-
//~^ERROR expected lifetime, type, or constant, found keyword `const`
11-
//~^^ERROR cannot constrain an associated constant to a value
12-
//~^^^ERROR this trait takes 1 generic argument but 0 generic arguments
13-
//~^^^^ERROR associated type bindings are not allowed here
10+
//~^ ERROR expected lifetime, type, or constant, found keyword `const`
11+
//~| ERROR cannot constrain an associated constant to a value
12+
//~| ERROR this trait takes 1 generic argument but 0 generic arguments
13+
//~| ERROR associated type bindings are not allowed here
1414
fn do_x(&self) -> [u8; 3] {
1515
[0u8; 3]
1616
}

0 commit comments

Comments
 (0)