summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/let_with_type_underscore.stderr
blob: 16bf83c708fe8522368186d350f96ee425e8e415 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
error: variable declared with type underscore
  --> $DIR/let_with_type_underscore.rs:11:5
   |
LL |     let x: _ = 1;
   |     ^^^^^^^^^^^^^
   |
help: remove the explicit type `_` declaration
  --> $DIR/let_with_type_underscore.rs:11:10
   |
LL |     let x: _ = 1;
   |          ^^^
   = note: `-D clippy::let-with-type-underscore` implied by `-D warnings`

error: variable declared with type underscore
  --> $DIR/let_with_type_underscore.rs:12:5
   |
LL |     let _: _ = 2;
   |     ^^^^^^^^^^^^^
   |
help: remove the explicit type `_` declaration
  --> $DIR/let_with_type_underscore.rs:12:10
   |
LL |     let _: _ = 2;
   |          ^^^

error: variable declared with type underscore
  --> $DIR/let_with_type_underscore.rs:13:5
   |
LL |     let x: _ = func();
   |     ^^^^^^^^^^^^^^^^^^
   |
help: remove the explicit type `_` declaration
  --> $DIR/let_with_type_underscore.rs:13:10
   |
LL |     let x: _ = func();
   |          ^^^

error: aborting due to 3 previous errors