about summary refs log tree commit diff
path: root/tests/ui/rfcs/rfc-0000-never_patterns/bindings.stderr
blob: d9c0f67335cdc317cd44c6f378eef41eadfa9d11 (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
error: never patterns cannot contain variable bindings
  --> $DIR/bindings.rs:17:15
   |
LL |         Err(&(_a, _b, !)),
   |               ^^ help: use a wildcard `_` instead

error: never patterns cannot contain variable bindings
  --> $DIR/bindings.rs:17:19
   |
LL |         Err(&(_a, _b, !)),
   |                   ^^ help: use a wildcard `_` instead

error: never patterns cannot contain variable bindings
  --> $DIR/bindings.rs:22:25
   |
LL |         Ok(_ok) | Err(&(_a, _b, !)) => {}
   |                         ^^ help: use a wildcard `_` instead

error: never patterns cannot contain variable bindings
  --> $DIR/bindings.rs:22:29
   |
LL |         Ok(_ok) | Err(&(_a, _b, !)) => {}
   |                             ^^ help: use a wildcard `_` instead

error: never patterns cannot contain variable bindings
  --> $DIR/bindings.rs:35:10
   |
LL |     let (_a, (! | !)) = (true, void);
   |          ^^ help: use a wildcard `_` instead

error: never patterns cannot contain variable bindings
  --> $DIR/bindings.rs:39:9
   |
LL |     let _a @ ! = void;
   |         ^^ help: use a wildcard `_` instead

error: never patterns cannot contain variable bindings
  --> $DIR/bindings.rs:42:10
   |
LL |     let (_a @ (), !) = ((), void);
   |          ^^ help: use a wildcard `_` instead

error: never patterns cannot contain variable bindings
  --> $DIR/bindings.rs:45:14
   |
LL |             (_b @ (_, !))) = (true, void);
   |              ^^ help: use a wildcard `_` instead

error: aborting due to 8 previous errors