mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 21:15:18 +03:00
21 lines
685 B
Plaintext
21 lines
685 B
Plaintext
error: using `as _` conversion
|
|
--> tests/ui/as_underscore_unfixable.rs:8:37
|
|
|
|
|
LL | let _: Box<dyn FnOnce() -> _> = Box::new(f) as _;
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: consider giving the type explicitly
|
|
= note: `-D clippy::as-underscore` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::as_underscore)]`
|
|
|
|
error: using `as _` conversion
|
|
--> tests/ui/as_underscore_unfixable.rs:12:33
|
|
|
|
|
LL | let _: Box<dyn Fn() -> _> = Box::new(barr) as _;
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: consider giving the type explicitly
|
|
|
|
error: aborting due to 2 previous errors
|
|
|