2021-10-17 00:42:22 -05:00
|
|
|
// from rfc2005 test suite
|
|
|
|
|
2022-02-27 00:08:31 -06:00
|
|
|
|
2021-10-17 00:42:22 -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;
|
|
|
|
let u32::XXX = foo else { return }; //~ ERROR: no associated item named `XXX` found for type `u32` in the current scope [E0599]
|
|
|
|
}
|