We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
This example should not compile:
#![feature(nll)] struct A<'a> { x: &'a u32 } impl<'a> A<'a> { fn new(x: &'a u32) -> Self { Self { x } } } fn foo<'a>() { let v = 22; let x = A::<'a>::new(&v); } fn main() {}
But it does =)