mirror of
https://github.com/rust-lang/book.git
synced 2026-12-04 11:44:56 -06:00
Fix the build
This commit is contained in:
@@ -369,7 +369,7 @@ needing to write out a really long type.
|
||||
This only works if you have a single type that you're returning, however.
|
||||
For example, this would *not* work:
|
||||
|
||||
```rust
|
||||
```rust,ignore
|
||||
fn returns_summarizable(switch: bool) -> impl Summary {
|
||||
if switch {
|
||||
NewsArticle {
|
||||
|
||||
Reference in New Issue
Block a user