]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/nll/relate_tys/fn-subtype.rs
1 // Test that NLL produces correct spans for higher-ranked subtyping errors.
3 // compile-flags:-Zno-leak-check
6 let x
: fn(&'
static ()) = |_
| {}
;
7 let y
: for<'a
> fn(&'
a ()) = x
; //~ ERROR mismatched types [E0308]