1
Fork 0

modify test to side-step platform-dependent stderr output

This commit is contained in:
Esteban Küber 2025-01-08 00:13:43 +00:00
parent d44f021904
commit 592f2c90da
2 changed files with 27 additions and 18 deletions

View file

@ -1,7 +1,10 @@
// Regression test for #135209.
// We ensure that we don't try to access fields on a non-struct pattern type.
fn main() {
if let Iterator::Item { .. } = 1 { //~ ERROR E0223
if let <Vec<()> as Iterator>::Item { .. } = 1 {
//~^ ERROR E0658
//~| ERROR E0071
//~| ERROR E0277
x //~ ERROR E0425
}
}