mirror of
https://github.com/Noratrieb/dilaria.git
synced 2026-01-16 10:25:02 +01:00
more things
This commit is contained in:
parent
483ba1105c
commit
e6f2f45fb9
1 changed files with 2 additions and 1 deletions
|
|
@ -10,7 +10,8 @@ impl<'a, D: CoolTrait> CoolTrait for &'a D {}
|
||||||
pub enum Parent<'a> {
|
pub enum Parent<'a> {
|
||||||
A(Box<A<'a>>),
|
A(Box<A<'a>>),
|
||||||
B(Box<B<'a>>),
|
B(Box<B<'a>>),
|
||||||
// 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 ()>)
|
Boo(PhantomData<&'a ()>)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue