]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/traits/object/supertrait-lifetime-bound.rs
5 fn test1
<T
: ?Sized
+ Bar
<S
>, S
>() { }
8 // Here: the type `dyn Bar<&'a u32>` references `'a`,
9 // and so it does not outlive `'static`.
10 test1
::<dyn Bar
<&'a
u32>, _
>();
11 //~^ ERROR lifetime may not live long enough