summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/let_with_type_underscore.stderr
blob: d4c9ba19c39f5596638f9e44ee9a21b433d0f910 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
error: variable declared with type underscore
  --> $DIR/let_with_type_underscore.rs:15:5
   |
LL |     let x: _ = 1;
   |     ^^^^^^^^^^^^^
   |
help: remove the explicit type `_` declaration
  --> $DIR/let_with_type_underscore.rs:15:10
   |
LL |     let x: _ = 1;
   |          ^^^
   = note: `-D clippy::let-with-type-underscore` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::let_with_type_underscore)]`

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

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

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

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

error: aborting due to 5 previous errors