mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
11 lines
291 B
Plaintext
11 lines
291 B
Plaintext
error: called `Option::take()` on a temporary value
|
|
--> $DIR/needless_option_take.rs:14:5
|
|
|
|
|
LL | x.as_ref().take();
|
|
| ^^^^^^^^^^^^^^^^^ help: try: `x.as_ref()`
|
|
|
|
|
= note: `-D clippy::needless-option-take` implied by `-D warnings`
|
|
|
|
error: aborting due to previous error
|
|
|