]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/borrowck/borrowck-trait-lifetime.rs
2 #![allow(unused_imports)]
3 // This test verifies that casting from the same lifetime on a value
4 // to the same lifetime on a trait succeeds. See issue #10766.
6 // pretty-expanded FIXME #23616
13 trait T { fn foo(&self) {}
}
15 fn f
<'a
, V
: T
>(v
: &'a V
) -> &'a
dyn T
{