mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 23:03:06 +03:00
corrected comment to reflect that 'SnowWhite lives longer than 'kiss in E0478
This commit is contained in:
@@ -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!
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user