diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2025-04-07 15:44:12 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2025-04-07 19:13:31 +0300 |
| commit | 5c160f511e321a89eef01fcf17c6cc4c0f4e5c00 (patch) | |
| tree | 016abaa173e463d7a708e6def26c9b41a18d0a32 /tests/ui/const-generics/defaults | |
| parent | b86b3fb640e4f914db9013872e8ff67b74ba286d (diff) | |
| download | rust-5c160f511e321a89eef01fcf17c6cc4c0f4e5c00.tar.gz rust-5c160f511e321a89eef01fcf17c6cc4c0f4e5c00.zip | |
compiletest: Stricter parsing for diagnostic kinds
Diffstat (limited to 'tests/ui/const-generics/defaults')
| -rw-r--r-- | tests/ui/const-generics/defaults/mismatch.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/ui/const-generics/defaults/mismatch.rs b/tests/ui/const-generics/defaults/mismatch.rs index ec131505ed7..3e35c2060b1 100644 --- a/tests/ui/const-generics/defaults/mismatch.rs +++ b/tests/ui/const-generics/defaults/mismatch.rs @@ -5,18 +5,18 @@ pub struct Example4<const N: usize = 13, const M: usize = 4>; fn main() { let e: Example<13> = (); - //~^ Error: mismatched types + //~^ ERROR mismatched types //~| expected struct `Example` let e: Example2<u32, 13> = (); - //~^ Error: mismatched types + //~^ ERROR mismatched types //~| expected struct `Example2` let e: Example3<13, u32> = (); - //~^ Error: mismatched types + //~^ ERROR mismatched types //~| expected struct `Example3` let e: Example3<7> = (); - //~^ Error: mismatched types + //~^ ERROR mismatched types //~| expected struct `Example3<7>` let e: Example4<7> = (); - //~^ Error: mismatched types + //~^ ERROR mismatched types //~| expected struct `Example4<7>` } |
