about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/match_same_arms_non_exhaustive.stderr
blob: 03252f346c6cc8fdee919f8720536ca713d2296c (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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
error: these match arms have identical bodies
  --> tests/ui/match_same_arms_non_exhaustive.rs:16:9
   |
LL |         Ordering::AcqRel | Ordering::SeqCst => repeat(),
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
LL |
LL |         _ => repeat(),
   |         ^^^^^^^^^^^^^
   |
   = help: if this is unintentional make the arms return different values
   = note: `-D clippy::match-same-arms` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::match_same_arms)]`
help: otherwise merge the patterns into a single arm
   |
LL ~
LL ~         Ordering::AcqRel | Ordering::SeqCst | _ => repeat(),
   |

error: these match arms have identical bodies
  --> tests/ui/match_same_arms_non_exhaustive.rs:25:9
   |
LL |         Ordering::AcqRel => repeat(),
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
LL |
LL |         Ordering::SeqCst | _ => repeat(),
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: if this is unintentional make the arms return different values
help: otherwise merge the patterns into a single arm
   |
LL ~
LL ~         Ordering::AcqRel | Ordering::SeqCst | _ => repeat(),
   |

error: these match arms have identical bodies
  --> tests/ui/match_same_arms_non_exhaustive.rs:41:13
   |
LL |             Ordering::AcqRel | Ordering::SeqCst => repeat(),
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
LL |
LL |             _ => repeat(),
   |             ^^^^^^^^^^^^^
   |
   = help: if this is unintentional make the arms return different values
help: otherwise merge the patterns into a single arm
   |
LL ~
LL ~             Ordering::AcqRel | Ordering::SeqCst | _ => repeat(),
   |

error: these match arms have identical bodies
  --> tests/ui/match_same_arms_non_exhaustive.rs:55:9
   |
LL |         Ordering::AcqRel | Ordering::SeqCst => repeat(),
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
LL |         _ => repeat(),
   |         ^^^^^^^^^^^^^ the wildcard arm
   |
   = help: if this is unintentional make the arms return different values
help: otherwise remove the non-wildcard arm
   |
LL -         Ordering::AcqRel | Ordering::SeqCst => repeat(),
   |

error: these match arms have identical bodies
  --> tests/ui/match_same_arms_non_exhaustive.rs:69:13
   |
LL |             Ordering::AcqRel | Ordering::SeqCst => repeat(),
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
LL |             _ => repeat(),
   |             ^^^^^^^^^^^^^ the wildcard arm
   |
   = help: if this is unintentional make the arms return different values
help: otherwise remove the non-wildcard arm
   |
LL -             Ordering::AcqRel | Ordering::SeqCst => repeat(),
   |

error: aborting due to 5 previous errors