|
1 |
| -error: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details. |
| 1 | +error: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon |
2 | 2 | --> $DIR/fn-ptr-is-not-structurally-matchable.rs:41:14
|
3 | 3 | |
|
4 | 4 | LL | const CFN1: Wrap<fn()> = Wrap(trivial);
|
5 | 5 | | ---------------------- constant defined here
|
6 | 6 | ...
|
7 | 7 | LL | Wrap(CFN1) => count += 1,
|
8 |
| - | ^^^^ |
| 8 | + | ^^^^ can't be used in patterns |
| 9 | + | |
| 10 | + = note: see https://github.com/rust-lang/rust/issues/70861 for details |
9 | 11 |
|
10 |
| -error: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details. |
| 12 | +error: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon |
11 | 13 | --> $DIR/fn-ptr-is-not-structurally-matchable.rs:49:14
|
12 | 14 | |
|
13 | 15 | LL | const CFN2: Wrap<fn(SM)> = Wrap(sm_to);
|
14 | 16 | | ------------------------ constant defined here
|
15 | 17 | ...
|
16 | 18 | LL | Wrap(CFN2) => count += 1,
|
17 |
| - | ^^^^ |
| 19 | + | ^^^^ can't be used in patterns |
| 20 | + | |
| 21 | + = note: see https://github.com/rust-lang/rust/issues/70861 for details |
18 | 22 |
|
19 |
| -error: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details. |
| 23 | +error: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon |
20 | 24 | --> $DIR/fn-ptr-is-not-structurally-matchable.rs:57:14
|
21 | 25 | |
|
22 | 26 | LL | const CFN3: Wrap<fn() -> SM> = Wrap(to_sm);
|
23 | 27 | | ---------------------------- constant defined here
|
24 | 28 | ...
|
25 | 29 | LL | Wrap(CFN3) => count += 1,
|
26 |
| - | ^^^^ |
| 30 | + | ^^^^ can't be used in patterns |
| 31 | + | |
| 32 | + = note: see https://github.com/rust-lang/rust/issues/70861 for details |
27 | 33 |
|
28 |
| -error: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details. |
| 34 | +error: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon |
29 | 35 | --> $DIR/fn-ptr-is-not-structurally-matchable.rs:65:14
|
30 | 36 | |
|
31 | 37 | LL | const CFN4: Wrap<fn(NotSM)> = Wrap(not_sm_to);
|
32 | 38 | | --------------------------- constant defined here
|
33 | 39 | ...
|
34 | 40 | LL | Wrap(CFN4) => count += 1,
|
35 |
| - | ^^^^ |
| 41 | + | ^^^^ can't be used in patterns |
| 42 | + | |
| 43 | + = note: see https://github.com/rust-lang/rust/issues/70861 for details |
36 | 44 |
|
37 |
| -error: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details. |
| 45 | +error: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon |
38 | 46 | --> $DIR/fn-ptr-is-not-structurally-matchable.rs:73:14
|
39 | 47 | |
|
40 | 48 | LL | const CFN5: Wrap<fn() -> NotSM> = Wrap(to_not_sm);
|
41 | 49 | | ------------------------------- constant defined here
|
42 | 50 | ...
|
43 | 51 | LL | Wrap(CFN5) => count += 1,
|
44 |
| - | ^^^^ |
| 52 | + | ^^^^ can't be used in patterns |
| 53 | + | |
| 54 | + = note: see https://github.com/rust-lang/rust/issues/70861 for details |
45 | 55 |
|
46 |
| -error: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details. |
| 56 | +error: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon |
47 | 57 | --> $DIR/fn-ptr-is-not-structurally-matchable.rs:81:14
|
48 | 58 | |
|
49 | 59 | LL | const CFN6: Wrap<fn(&SM)> = Wrap(r_sm_to);
|
50 | 60 | | ------------------------- constant defined here
|
51 | 61 | ...
|
52 | 62 | LL | Wrap(CFN6) => count += 1,
|
53 |
| - | ^^^^ |
| 63 | + | ^^^^ can't be used in patterns |
| 64 | + | |
| 65 | + = note: see https://github.com/rust-lang/rust/issues/70861 for details |
54 | 66 |
|
55 |
| -error: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details. |
| 67 | +error: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon |
56 | 68 | --> $DIR/fn-ptr-is-not-structurally-matchable.rs:89:14
|
57 | 69 | |
|
58 | 70 | LL | const CFN7: Wrap<fn(&()) -> &SM> = Wrap(r_to_r_sm);
|
59 | 71 | | -------------------------------- constant defined here
|
60 | 72 | ...
|
61 | 73 | LL | Wrap(CFN7) => count += 1,
|
62 |
| - | ^^^^ |
| 74 | + | ^^^^ can't be used in patterns |
| 75 | + | |
| 76 | + = note: see https://github.com/rust-lang/rust/issues/70861 for details |
63 | 77 |
|
64 |
| -error: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details. |
| 78 | +error: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon |
65 | 79 | --> $DIR/fn-ptr-is-not-structurally-matchable.rs:97:14
|
66 | 80 | |
|
67 | 81 | LL | const CFN8: Wrap<fn(&NotSM)> = Wrap(r_not_sm_to);
|
68 | 82 | | ---------------------------- constant defined here
|
69 | 83 | ...
|
70 | 84 | LL | Wrap(CFN8) => count += 1,
|
71 |
| - | ^^^^ |
| 85 | + | ^^^^ can't be used in patterns |
| 86 | + | |
| 87 | + = note: see https://github.com/rust-lang/rust/issues/70861 for details |
72 | 88 |
|
73 |
| -error: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details. |
| 89 | +error: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon |
74 | 90 | --> $DIR/fn-ptr-is-not-structurally-matchable.rs:105:14
|
75 | 91 | |
|
76 | 92 | LL | const CFN9: Wrap<fn(&()) -> &NotSM> = Wrap(r_to_r_not_sm);
|
77 | 93 | | ----------------------------------- constant defined here
|
78 | 94 | ...
|
79 | 95 | LL | Wrap(CFN9) => count += 1,
|
80 |
| - | ^^^^ |
| 96 | + | ^^^^ can't be used in patterns |
| 97 | + | |
| 98 | + = note: see https://github.com/rust-lang/rust/issues/70861 for details |
81 | 99 |
|
82 |
| -error: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details. |
| 100 | +error: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon |
83 | 101 | --> $DIR/fn-ptr-is-not-structurally-matchable.rs:127:9
|
84 | 102 | |
|
85 | 103 | LL | const CFOO: Foo = Foo {
|
86 | 104 | | --------------- constant defined here
|
87 | 105 | ...
|
88 | 106 | LL | CFOO => count += 1,
|
89 |
| - | ^^^^ |
| 107 | + | ^^^^ can't be used in patterns |
| 108 | + | |
| 109 | + = note: see https://github.com/rust-lang/rust/issues/70861 for details |
90 | 110 |
|
91 | 111 | error: aborting due to 10 previous errors
|
92 | 112 |
|
0 commit comments