rust/tests/ui/let_underscore.stderr

100 lines
2.7 KiB
Plaintext
Raw Normal View History

2020-01-06 00:36:33 -06:00
error: non-binding let on a result of a `#[must_use]` function
--> $DIR/let_underscore.rs:59:5
|
LL | let _ = f();
| ^^^^^^^^^^^^
|
= note: `-D clippy::let-underscore-must-use` implied by `-D warnings`
= help: consider explicitly using function result
2020-01-06 00:36:33 -06:00
error: non-binding let on an expression with `#[must_use]` type
--> $DIR/let_underscore.rs:60:5
|
LL | let _ = g();
| ^^^^^^^^^^^^
|
= help: consider explicitly using expression value
2020-01-06 00:36:33 -06:00
error: non-binding let on a result of a `#[must_use]` function
--> $DIR/let_underscore.rs:62:5
|
LL | let _ = l(0_u32);
| ^^^^^^^^^^^^^^^^^
|
= help: consider explicitly using function result
2020-01-06 00:36:33 -06:00
error: non-binding let on a result of a `#[must_use]` function
--> $DIR/let_underscore.rs:66:5
|
LL | let _ = s.f();
| ^^^^^^^^^^^^^^
|
= help: consider explicitly using function result
2020-01-06 00:36:33 -06:00
error: non-binding let on an expression with `#[must_use]` type
--> $DIR/let_underscore.rs:67:5
|
LL | let _ = s.g();
| ^^^^^^^^^^^^^^
|
= help: consider explicitly using expression value
2020-01-06 00:36:33 -06:00
error: non-binding let on a result of a `#[must_use]` function
--> $DIR/let_underscore.rs:70:5
|
LL | let _ = S::h();
| ^^^^^^^^^^^^^^^
|
= help: consider explicitly using function result
2020-01-06 00:36:33 -06:00
error: non-binding let on an expression with `#[must_use]` type
--> $DIR/let_underscore.rs:71:5
|
LL | let _ = S::p();
| ^^^^^^^^^^^^^^^
|
= help: consider explicitly using expression value
2020-01-06 00:36:33 -06:00
error: non-binding let on a result of a `#[must_use]` function
--> $DIR/let_underscore.rs:73:5
|
LL | let _ = S::a();
| ^^^^^^^^^^^^^^^
|
= help: consider explicitly using function result
2020-01-06 00:36:33 -06:00
error: non-binding let on an expression with `#[must_use]` type
--> $DIR/let_underscore.rs:75:5
|
LL | let _ = if true { Ok(()) } else { Err(()) };
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider explicitly using expression value
2020-01-06 00:36:33 -06:00
error: non-binding let on a result of a `#[must_use]` function
--> $DIR/let_underscore.rs:79:5
|
LL | let _ = a.is_ok();
| ^^^^^^^^^^^^^^^^^^
|
= help: consider explicitly using function result
2020-01-06 00:36:33 -06:00
error: non-binding let on an expression with `#[must_use]` type
--> $DIR/let_underscore.rs:81:5
|
LL | let _ = a.map(|_| ());
| ^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider explicitly using expression value
2020-01-06 00:36:33 -06:00
error: non-binding let on an expression with `#[must_use]` type
--> $DIR/let_underscore.rs:83:5
|
LL | let _ = a;
| ^^^^^^^^^^
|
= help: consider explicitly using expression value
error: aborting due to 12 previous errors