rust-unofficial / patterns

A catalogue of Rust design patterns, anti-patterns and idioms
https://rust-unofficial.github.io/patterns/
Mozilla Public License 2.0
7.95k stars 362 forks source link

Update compose structs compile error example for NLL #136

Closed brandondong closed 3 years ago

brandondong commented 3 years ago

The first example in https://rust-unofficial.github.io/patterns/patterns/compose-structs.html states that there will be a compile error but this is not true with non lexical lifetimes.

simonsan commented 3 years ago

Hey @brandondong thanks for pointing that out, as you're on it, could you please remove the ignore from the first example and make it pass the test? So we continuously improve test coverage of the examples.

simonsan commented 3 years ago

Thank you! :-)