2017-10-06 15:30:23 -05:00
|
|
|
// 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 {
|
2017-11-20 06:13:27 -06:00
|
|
|
u32::XXX => { } //~ ERROR no associated item named
|
2017-10-06 15:30:23 -05:00
|
|
|
_ => { }
|
|
|
|
}
|
|
|
|
}
|