mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-06 10:35:37 +00:00
12 lines
321 B
Rust
12 lines
321 B
Rust
// Without caching type lookups in FnCtxt.resolve_ty_and_def_ufcs
|
|
// the error below would be reported twice (once when checking
|
|
// for a non-ref pattern, once when processing the pattern).
|
|
|
|
fn main() {
|
|
let foo = 22;
|
|
match foo {
|
|
u32::XXX => { } //~ ERROR no associated item named
|
|
_ => { }
|
|
}
|
|
}
|