corrected comment to reflect that 'SnowWhite lives longer than 'kiss in E0478
This commit is contained in:
parent
14195e1f1d
commit
f430fca73a
@ -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!
|
||||
}
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user