rust/tests/ui/let_unit.stderr

17 lines
435 B
Plaintext
Raw Normal View History

error: this let-binding has unit value. Consider omitting `let _x =`
--> $DIR/let_unit.rs:11:5
|
2018-12-27 16:57:55 +01:00
LL | let _x = println!("x");
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `-D clippy::let-unit-value` implied by `-D warnings`
error: this let-binding has unit value. Consider omitting `let _a =`
--> $DIR/let_unit.rs:15:9
|
2018-12-27 16:57:55 +01:00
LL | let _a = ();
| ^^^^^^^^^^^^
2018-01-16 17:06:27 +01:00
error: aborting due to 2 previous errors