From e6f2f45fb98bbb916b3c8585477aa0ee9b7a1137 Mon Sep 17 00:00:00 2001 From: Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> Date: Sat, 23 Apr 2022 23:50:22 +0200 Subject: [PATCH] more things --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 3e282ee..125e07a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -10,7 +10,8 @@ impl<'a, D: CoolTrait> CoolTrait for &'a D {} pub enum Parent<'a> { A(Box>), B(Box>), - // We need a lifetime or else everything is fine + // We need a lifetime. otherwise, if we remove it, we get: + // error[E0275]: overflow evaluating the requirement `A: CoolTrait` Boo(PhantomData<&'a ()>) }