fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: unreachable pattern 2 --> $DIR/exhaustiveness-unreachable-pattern.rs:7:9 3 | 4LL | (1,) => {} 5 | ^^^^ 6 | 7note: the lint level is defined here 8 --> $DIR/exhaustiveness-unreachable-pattern.rs:1:9 9 | 10LL | #![deny(unreachable_patterns)] 11 | ^^^^^^^^^^^^^^^^^^^^ 12 13error: unreachable pattern 14 --> $DIR/exhaustiveness-unreachable-pattern.rs:12:9 15 | 16LL | (2,) => {} 17 | ^^^^ 18 19error: unreachable pattern 20 --> $DIR/exhaustiveness-unreachable-pattern.rs:18:9 21 | 22LL | (1 | 2,) => {} 23 | ^^^^^^^^ 24 25error: unreachable pattern 26 --> $DIR/exhaustiveness-unreachable-pattern.rs:23:9 27 | 28LL | (1, 3) => {} 29 | ^^^^^^ 30 31error: unreachable pattern 32 --> $DIR/exhaustiveness-unreachable-pattern.rs:24:9 33 | 34LL | (1, 4) => {} 35 | ^^^^^^ 36 37error: unreachable pattern 38 --> $DIR/exhaustiveness-unreachable-pattern.rs:25:9 39 | 40LL | (2, 4) => {} 41 | ^^^^^^ 42 43error: unreachable pattern 44 --> $DIR/exhaustiveness-unreachable-pattern.rs:26:9 45 | 46LL | (2 | 1, 4) => {} 47 | ^^^^^^^^^^ 48 49error: unreachable pattern 50 --> $DIR/exhaustiveness-unreachable-pattern.rs:28:9 51 | 52LL | (1, 4 | 5) => {} 53 | ^^^^^^^^^^ 54 55error: unreachable pattern 56 --> $DIR/exhaustiveness-unreachable-pattern.rs:36:9 57 | 58LL | (Some(1),) => {} 59 | ^^^^^^^^^^ 60 61error: unreachable pattern 62 --> $DIR/exhaustiveness-unreachable-pattern.rs:37:9 63 | 64LL | (None,) => {} 65 | ^^^^^^^ 66 67error: unreachable pattern 68 --> $DIR/exhaustiveness-unreachable-pattern.rs:42:9 69 | 70LL | ((1..=4,),) => {} 71 | ^^^^^^^^^^^ 72 73error: unreachable pattern 74 --> $DIR/exhaustiveness-unreachable-pattern.rs:47:14 75 | 76LL | (1 | 1,) => {} 77 | ^ 78 79error: unreachable pattern 80 --> $DIR/exhaustiveness-unreachable-pattern.rs:51:19 81 | 82LL | (0 | 1) | 1 => {} 83 | ^ 84 85error: unreachable pattern 86 --> $DIR/exhaustiveness-unreachable-pattern.rs:57:14 87 | 88LL | 0 | (0 | 0) => {} 89 | ^ 90 91error: unreachable pattern 92 --> $DIR/exhaustiveness-unreachable-pattern.rs:57:18 93 | 94LL | 0 | (0 | 0) => {} 95 | ^ 96 97error: unreachable pattern 98 --> $DIR/exhaustiveness-unreachable-pattern.rs:65:13 99 | 100LL | / Some( 101LL | | 0 | 0) => {} 102 | |______________________^ 103 104error: unreachable pattern 105 --> $DIR/exhaustiveness-unreachable-pattern.rs:71:15 106 | 107LL | | 0 108 | ^ 109 110error: unreachable pattern 111 --> $DIR/exhaustiveness-unreachable-pattern.rs:73:15 112 | 113LL | | 0] => {} 114 | ^ 115 116error: unreachable pattern 117 --> $DIR/exhaustiveness-unreachable-pattern.rs:81:10 118 | 119LL | [1 120 | ^ 121 122error: unreachable pattern 123 --> $DIR/exhaustiveness-unreachable-pattern.rs:93:10 124 | 125LL | [true 126 | ^^^^ 127 128error: unreachable pattern 129 --> $DIR/exhaustiveness-unreachable-pattern.rs:100:36 130 | 131LL | (true | false, None | Some(true 132 | ^^^^ 133 134error: unreachable pattern 135 --> $DIR/exhaustiveness-unreachable-pattern.rs:105:14 136 | 137LL | (true 138 | ^^^^ 139... 140LL | (true | false, None | Some(t_or_f!())) => {} 141 | --------- in this macro invocation 142 | 143 = note: this error originates in the macro `t_or_f` (in Nightly builds, run with -Z macro-backtrace for more info) 144 145error: unreachable pattern 146 --> $DIR/exhaustiveness-unreachable-pattern.rs:116:14 147 | 148LL | Some(0 149 | ^ 150 151error: unreachable pattern 152 --> $DIR/exhaustiveness-unreachable-pattern.rs:135:19 153 | 154LL | | false) => {} 155 | ^^^^^ 156 157error: unreachable pattern 158 --> $DIR/exhaustiveness-unreachable-pattern.rs:143:15 159 | 160LL | | true) => {} 161 | ^^^^ 162 163error: unreachable pattern 164 --> $DIR/exhaustiveness-unreachable-pattern.rs:149:15 165 | 166LL | | true, 167 | ^^^^ 168 169error: aborting due to 26 previous errors 170