1 error: top-level or-patterns are not allowed in `let` bindings
2 --> $DIR/nested-undelimited-precedence.rs:19:9
4 LL | let b @ A | B: E = A;
5 | ^^^^^^^^^ help: wrap the pattern in parentheses: `(b @ A | B)`
7 error: top-level or-patterns are not allowed in `let` bindings
8 --> $DIR/nested-undelimited-precedence.rs:34:9
10 LL | let &A(_) | B(_): F = A(3);
11 | ^^^^^^^^^^^^ help: wrap the pattern in parentheses: `(&A(_) | B(_))`
13 error: top-level or-patterns are not allowed in `let` bindings
14 --> $DIR/nested-undelimited-precedence.rs:36:9
16 LL | let &&A(_) | B(_): F = A(3);
17 | ^^^^^^^^^^^^^ help: wrap the pattern in parentheses: `(&&A(_) | B(_))`
19 error: top-level or-patterns are not allowed in `let` bindings
20 --> $DIR/nested-undelimited-precedence.rs:38:9
22 LL | let &mut A(_) | B(_): F = A(3);
23 | ^^^^^^^^^^^^^^^^ help: wrap the pattern in parentheses: `(&mut A(_) | B(_))`
25 error: top-level or-patterns are not allowed in `let` bindings
26 --> $DIR/nested-undelimited-precedence.rs:40:9
28 LL | let &&mut A(_) | B(_): F = A(3);
29 | ^^^^^^^^^^^^^^^^^ help: wrap the pattern in parentheses: `(&&mut A(_) | B(_))`
31 error[E0408]: variable `b` is not bound in all patterns
32 --> $DIR/nested-undelimited-precedence.rs:19:17
34 LL | let b @ A | B: E = A;
35 | - ^ pattern doesn't bind `b`
37 | variable not in all patterns
39 error[E0308]: mismatched types
40 --> $DIR/nested-undelimited-precedence.rs:34:9
42 LL | let &A(_) | B(_): F = A(3);
43 | ^^^^^ - expected due to this
45 | expected `F`, found `&_`
47 = note: expected enum `F`
50 error[E0308]: mismatched types
51 --> $DIR/nested-undelimited-precedence.rs:36:9
53 LL | let &&A(_) | B(_): F = A(3);
54 | ^^^^^^ - expected due to this
56 | expected `F`, found `&_`
58 = note: expected enum `F`
61 error[E0308]: mismatched types
62 --> $DIR/nested-undelimited-precedence.rs:38:9
64 LL | let &mut A(_) | B(_): F = A(3);
65 | ^^^^^^^^^ - expected due to this
67 | expected `F`, found `&mut _`
69 = note: expected enum `F`
70 found mutable reference `&mut _`
72 error[E0308]: mismatched types
73 --> $DIR/nested-undelimited-precedence.rs:40:9
75 LL | let &&mut A(_) | B(_): F = A(3);
76 | ^^^^^^^^^^ - expected due to this
78 | expected `F`, found `&_`
80 = note: expected enum `F`
83 error: aborting due to 10 previous errors
85 Some errors have detailed explanations: E0308, E0408.
86 For more information about an error, try `rustc --explain E0308`.