blob: 46fdfd678cc6db7f8dc6faf922c5e654f2070fab (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
 | // 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
        _ => { }
    }
}
 |