corrected comment to reflect that 'SnowWhite lives longer than 'kiss in E0478

This commit is contained in:
ryan 2019-12-08 18:09:36 -08:00
parent 14195e1f1d
commit f430fca73a

View File

@ -21,8 +21,8 @@ this issue, you need to specify it:
```
trait Wedding<'t>: 't { }
struct Prince<'kiss, 'SnowWhite: 'kiss> { // You say here that 'kiss must live
// longer than 'SnowWhite.
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!
}
```