]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/nll/relate_tys/trait-hrtb.rs
1 // Test that NLL generates proper error spans for trait HRTB errors
3 // compile-flags:-Zno-leak-check
7 fn make_foo
<'a
>() -> Box
<dyn Foo
<'a
>> {
12 let x
: Box
<dyn Foo
<'
static>> = make_foo();
13 let y
: Box
<dyn for<'a
> Foo
<'a
>> = x
; //~ ERROR mismatched types [E0308]