fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: top-level or-patterns are not allowed in function parameters 2 --> $DIR/remove-leading-vert.rs:11:14 3 | 4LL | fn fun1( | A: E) {} 5 | ^^^ help: remove the `|`: `A` 6 7error: unexpected `||` before function parameter 8 --> $DIR/remove-leading-vert.rs:12:14 9 | 10LL | fn fun2( || A: E) {} 11 | ^^ help: remove the `||` 12 | 13 = note: alternatives in or-patterns are separated with `|`, not `||` 14 15error: unexpected token `||` in pattern 16 --> $DIR/remove-leading-vert.rs:14:11 17 | 18LL | let ( || A): (E); 19 | ^^ help: use a single `|` to separate multiple alternative patterns: `|` 20 21error: unexpected token `||` in pattern 22 --> $DIR/remove-leading-vert.rs:17:11 23 | 24LL | let [ || A ]: [E; 1]; 25 | ^^ help: use a single `|` to separate multiple alternative patterns: `|` 26 27error: unexpected token `||` in pattern 28 --> $DIR/remove-leading-vert.rs:19:13 29 | 30LL | let TS( || A ): TS; 31 | ^^ help: use a single `|` to separate multiple alternative patterns: `|` 32 33error: unexpected token `||` in pattern 34 --> $DIR/remove-leading-vert.rs:21:17 35 | 36LL | let NS { f: || A }: NS; 37 | ^^ help: use a single `|` to separate multiple alternative patterns: `|` 38 39error: a trailing `|` is not allowed in an or-pattern 40 --> $DIR/remove-leading-vert.rs:26:13 41 | 42LL | let ( A | ): E; 43 | - ^ help: remove the `|` 44 | | 45 | while parsing this or-pattern starting here 46 47error: a trailing `|` is not allowed in an or-pattern 48 --> $DIR/remove-leading-vert.rs:27:12 49 | 50LL | let (a |,): (E,); 51 | - ^ help: remove the `|` 52 | | 53 | while parsing this or-pattern starting here 54 55error: a trailing `|` is not allowed in an or-pattern 56 --> $DIR/remove-leading-vert.rs:28:17 57 | 58LL | let ( A | B | ): E; 59 | - ^ help: remove the `|` 60 | | 61 | while parsing this or-pattern starting here 62 63error: a trailing `|` is not allowed in an or-pattern 64 --> $DIR/remove-leading-vert.rs:29:17 65 | 66LL | let [ A | B | ]: [E; 1]; 67 | - ^ help: remove the `|` 68 | | 69 | while parsing this or-pattern starting here 70 71error: a trailing `|` is not allowed in an or-pattern 72 --> $DIR/remove-leading-vert.rs:30:18 73 | 74LL | let S { f: B | }; 75 | - ^ help: remove the `|` 76 | | 77 | while parsing this or-pattern starting here 78 79error: unexpected token `||` in pattern 80 --> $DIR/remove-leading-vert.rs:31:13 81 | 82LL | let ( A || B | ): E; 83 | - ^^ help: use a single `|` to separate multiple alternative patterns: `|` 84 | | 85 | while parsing this or-pattern starting here 86 87error: a trailing `|` is not allowed in an or-pattern 88 --> $DIR/remove-leading-vert.rs:31:18 89 | 90LL | let ( A || B | ): E; 91 | - ^ help: remove the `|` 92 | | 93 | while parsing this or-pattern starting here 94 95error: a trailing `|` is not allowed in an or-pattern 96 --> $DIR/remove-leading-vert.rs:34:11 97 | 98LL | A | => {} 99 | - ^ help: remove the `|` 100 | | 101 | while parsing this or-pattern starting here 102 103error: a trailing `|` is not allowed in an or-pattern 104 --> $DIR/remove-leading-vert.rs:35:11 105 | 106LL | A || => {} 107 | - ^^ help: remove the `||` 108 | | 109 | while parsing this or-pattern starting here 110 | 111 = note: alternatives in or-patterns are separated with `|`, not `||` 112 113error: unexpected token `||` in pattern 114 --> $DIR/remove-leading-vert.rs:36:11 115 | 116LL | A || B | => {} 117 | - ^^ help: use a single `|` to separate multiple alternative patterns: `|` 118 | | 119 | while parsing this or-pattern starting here 120 121error: a trailing `|` is not allowed in an or-pattern 122 --> $DIR/remove-leading-vert.rs:36:16 123 | 124LL | A || B | => {} 125 | - ^ help: remove the `|` 126 | | 127 | while parsing this or-pattern starting here 128 129error: a trailing `|` is not allowed in an or-pattern 130 --> $DIR/remove-leading-vert.rs:38:17 131 | 132LL | | A | B | => {} 133 | - ^ help: remove the `|` 134 | | 135 | while parsing this or-pattern starting here 136 137error: a trailing `|` is not allowed in an or-pattern 138 --> $DIR/remove-leading-vert.rs:45:11 139 | 140LL | let a | : u8 = 0; 141 | - ^ help: remove the `|` 142 | | 143 | while parsing this or-pattern starting here 144 145error: a trailing `|` is not allowed in an or-pattern 146 --> $DIR/remove-leading-vert.rs:46:11 147 | 148LL | let a | = 0; 149 | - ^ help: remove the `|` 150 | | 151 | while parsing this or-pattern starting here 152 153error: a trailing `|` is not allowed in an or-pattern 154 --> $DIR/remove-leading-vert.rs:47:11 155 | 156LL | let a | ; 157 | - ^ help: remove the `|` 158 | | 159 | while parsing this or-pattern starting here 160 161error: aborting due to 21 previous errors 162