modify test to side-step platform-dependent stderr output
This commit is contained in:
parent
d44f021904
commit
592f2c90da
2 changed files with 27 additions and 18 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue