]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2005-default-binding-mode/no-double-error.rs
Auto merge of #103600 - compiler-errors:early-binder-nits, r=spastorino
[rust.git] / src / test / ui / rfc-2005-default-binding-mode / no-double-error.rs
1 // Without caching type lookups in FnCtxt.resolve_ty_and_def_ufcs
2 // the error below would be reported twice (once when checking
3 // for a non-ref pattern, once when processing the pattern).
4
5 fn main() {
6     let foo = 22;
7     match foo {
8         u32::XXX => { } //~ ERROR no associated item named
9         _ => { }
10     }
11 }