You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this example, the 'SnowWhite lifetime is supposed to outlive the 'kiss lifetime
struct Prince<'kiss, 'SnowWhite: 'kiss> { // You say here that 'kiss must live
// longer than 'SnowWhite.
child: Box<Wedding<'kiss> + 'SnowWhite>, // And now it's all good!
}
The comment directly contradicts that 'SnowWhite should outlive 'kiss, thus making it unclear what the code actually does.
The text was updated successfully, but these errors were encountered:
jonas-schievink
added
C-bug
Category: This is a bug.
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
labels
Dec 5, 2019
In the text visible at https://doc.rust-lang.org/1.25.0/error-index.html#E0478
We first see
The comment directly contradicts that 'SnowWhite should outlive 'kiss, thus making it unclear what the code actually does.
The text was updated successfully, but these errors were encountered: