Skip to content

Instantly share code, notes, and snippets.

@Caellian
Last active January 5, 2024 15:31
Show Gist options
  • Save Caellian/dc7cc22404eefda7c9f6a49a269364d8 to your computer and use it in GitHub Desktop.
Save Caellian/dc7cc22404eefda7c9f6a49a269364d8 to your computer and use it in GitHub Desktop.
struct Lifetimed<'s> {
_phantom: std::marker::PhantomData<&'s ()>,
}
trait Project {
type Value;
}
impl<'s> Project for Lifetimed<'s>
{
type Value = ();
}
fn normalize<'s>() -> <Lifetimed<'s> as Project>::Value
where
Lifetimed<'s>: Project,
{
()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment