Update E0478.md
This commit is contained in:
parent
f430fca73a
commit
2183a949a8
@ -21,8 +21,8 @@ this issue, you need to specify it:
|
||||
```
|
||||
trait Wedding<'t>: 't { }
|
||||
|
||||
struct Prince<'kiss, 'SnowWhite: 'kiss> { // You say here that 'SnowWhite must live
|
||||
// longer than 'kiss.
|
||||
struct Prince<'kiss, 'SnowWhite: 'kiss> { // You say here that 'SnowWhite
|
||||
// must live longer than 'kiss.
|
||||
child: Box<Wedding<'kiss> + 'SnowWhite>, // And now it's all good!
|
||||
}
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user