mirror of
https://git.proxmox.com/git/rustc
synced 2026-02-03 15:31:58 +00:00
11 lines
283 B
Rust
11 lines
283 B
Rust
// Regression test for #135209.
|
|
// We ensure that we don't try to access fields on a non-struct pattern type.
|
|
fn main() {
|
|
if let <Vec<()> as Iterator>::Item { .. } = 1 {
|
|
//~^ ERROR E0658
|
|
//~| ERROR E0071
|
|
//~| ERROR E0277
|
|
x //~ ERROR E0425
|
|
}
|
|
}
|