Loading RustViz Engine...
Demonstrate how a reference with longer lifetime 'a can safely substitute shorter 'b.
This problem is currently in blueprint template mode. Once the concept foundation is finalized, live in-browser WebAssembly compilation and test assertion runners will be enabled here.
pub fn shorten_lifetime<'a, 'b>(r: &'a i32) -> &'b i32
where
'a: 'b,
{
r
}