-
-
Save Caellian/dc7cc22404eefda7c9f6a49a269364d8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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