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 15:57:55 +00: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 15:57:55 +00:00
LL | let _a = ();
| ^^^^^^^^^^^^
2018-01-16 16:06:27 +00:00
error: aborting due to 2 previous errors