2022-11-21 13:34:47 -06:00
|
|
|
error: non-binding `let` on a result of a `#[must_use]` function
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/let_underscore_must_use.rs:67:5
|
2019-11-16 08:55:00 -06:00
|
|
|
|
|
|
|
|
LL | let _ = f();
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider explicitly using function result
|
2022-09-22 11:04:22 -05:00
|
|
|
= note: `-D clippy::let-underscore-must-use` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::let_underscore_must_use)]`
|
2019-11-16 08:55:00 -06:00
|
|
|
|
2022-11-21 13:34:47 -06:00
|
|
|
error: non-binding `let` on an expression with `#[must_use]` type
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/let_underscore_must_use.rs:69:5
|
2019-11-16 08:55:00 -06:00
|
|
|
|
|
|
|
|
LL | let _ = g();
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider explicitly using expression value
|
|
|
|
|
2022-11-21 13:34:47 -06:00
|
|
|
error: non-binding `let` on a result of a `#[must_use]` function
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/let_underscore_must_use.rs:72:5
|
2019-11-16 08:55:00 -06:00
|
|
|
|
|
|
|
|
LL | let _ = l(0_u32);
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider explicitly using function result
|
|
|
|
|
2022-11-21 13:34:47 -06:00
|
|
|
error: non-binding `let` on a result of a `#[must_use]` function
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/let_underscore_must_use.rs:77:5
|
2019-11-16 08:55:00 -06:00
|
|
|
|
|
|
|
|
LL | let _ = s.f();
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider explicitly using function result
|
|
|
|
|
2022-11-21 13:34:47 -06:00
|
|
|
error: non-binding `let` on an expression with `#[must_use]` type
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/let_underscore_must_use.rs:79:5
|
2019-11-16 08:55:00 -06:00
|
|
|
|
|
|
|
|
LL | let _ = s.g();
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider explicitly using expression value
|
|
|
|
|
2022-11-21 13:34:47 -06:00
|
|
|
error: non-binding `let` on a result of a `#[must_use]` function
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/let_underscore_must_use.rs:83:5
|
2019-11-16 08:55:00 -06:00
|
|
|
|
|
|
|
|
LL | let _ = S::h();
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider explicitly using function result
|
|
|
|
|
2022-11-21 13:34:47 -06:00
|
|
|
error: non-binding `let` on an expression with `#[must_use]` type
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/let_underscore_must_use.rs:85:5
|
2019-11-16 08:55:00 -06:00
|
|
|
|
|
|
|
|
LL | let _ = S::p();
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider explicitly using expression value
|
|
|
|
|
2022-11-21 13:34:47 -06:00
|
|
|
error: non-binding `let` on a result of a `#[must_use]` function
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/let_underscore_must_use.rs:88:5
|
2019-11-16 08:55:00 -06:00
|
|
|
|
|
|
|
|
LL | let _ = S::a();
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider explicitly using function result
|
|
|
|
|
2022-11-21 13:34:47 -06:00
|
|
|
error: non-binding `let` on an expression with `#[must_use]` type
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/let_underscore_must_use.rs:91:5
|
2019-11-16 08:55:00 -06:00
|
|
|
|
|
|
|
|
LL | let _ = if true { Ok(()) } else { Err(()) };
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider explicitly using expression value
|
|
|
|
|
2022-11-21 13:34:47 -06:00
|
|
|
error: non-binding `let` on a result of a `#[must_use]` function
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/let_underscore_must_use.rs:96:5
|
2019-11-16 08:55:00 -06:00
|
|
|
|
|
|
|
|
LL | let _ = a.is_ok();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider explicitly using function result
|
|
|
|
|
2022-11-21 13:34:47 -06:00
|
|
|
error: non-binding `let` on an expression with `#[must_use]` type
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/let_underscore_must_use.rs:99:5
|
2019-11-16 08:55:00 -06:00
|
|
|
|
|
|
|
|
LL | let _ = a.map(|_| ());
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider explicitly using expression value
|
|
|
|
|
2022-11-21 13:34:47 -06:00
|
|
|
error: non-binding `let` on an expression with `#[must_use]` type
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/let_underscore_must_use.rs:102:5
|
2019-11-16 08:55:00 -06:00
|
|
|
|
|
|
|
|
LL | let _ = a;
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider explicitly using expression value
|
|
|
|
|
2020-01-28 03:28:11 -06:00
|
|
|
error: aborting due to 12 previous errors
|
2019-11-16 08:55:00 -06:00
|
|
|
|