Use with_forced_trimmed_paths
This commit is contained in:
parent
8d9ffa379e
commit
ce486d538b
7 changed files with 64 additions and 49 deletions
|
|
@ -14,7 +14,7 @@ LL | let p = Some(45).and_then({
|
|||
LL | |
|
||||
LL | | |x| println!("doubling {}", x);
|
||||
LL | | Some(x * 2)
|
||||
| | ----------- this tail expression is of type `std::option::Option<_>`
|
||||
| | ----------- this tail expression is of type `Option<_>`
|
||||
LL | |
|
||||
LL | | });
|
||||
| |_____^ expected an `FnOnce<({integer},)>` closure, found `Option<_>`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue