We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
The following should not compile because the bound D: 'static is not satisfied in fn test:
D: 'static
test
struct Static<D: 'static>(Option<D>); pub fn test<D>() { let _ = || { Static(None::<D>) }; }