2024-11-20 03:00:58 +00:00
|
|
|
error: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon
|
2024-05-03 15:49:10 +02:00
|
|
|
--> $DIR/issue-63479-match-fnptr.rs:32:7
|
2020-09-20 17:11:00 +02:00
|
|
|
|
|
2024-11-20 02:15:21 +00:00
|
|
|
LL | const TEST: Fn = my_fn;
|
|
|
|
|
| -------------- constant defined here
|
|
|
|
|
...
|
2020-09-20 17:11:00 +02:00
|
|
|
LL | B(TEST) => println!("matched"),
|
2024-11-20 03:00:58 +00:00
|
|
|
| ^^^^ can't be used in patterns
|
|
|
|
|
|
|
|
|
|
|
= note: see https://github.com/rust-lang/rust/issues/70861 for details
|
2020-09-20 17:11:00 +02:00
|
|
|
|
2024-11-20 03:00:58 +00:00
|
|
|
error: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon
|
2024-05-03 15:49:10 +02:00
|
|
|
--> $DIR/issue-63479-match-fnptr.rs:37:5
|
2023-10-20 08:35:36 +02:00
|
|
|
|
|
2024-11-20 02:15:21 +00:00
|
|
|
LL | const TEST2: (Fn, u8) = (TEST, 0);
|
|
|
|
|
| --------------------- constant defined here
|
|
|
|
|
...
|
2023-10-20 08:35:36 +02:00
|
|
|
LL | TEST2 => println!("matched"),
|
2024-11-20 03:00:58 +00:00
|
|
|
| ^^^^^ can't be used in patterns
|
|
|
|
|
|
|
|
|
|
|
= note: see https://github.com/rust-lang/rust/issues/70861 for details
|
2020-09-20 17:11:00 +02:00
|
|
|
|
2024-05-03 15:49:10 +02:00
|
|
|
error: aborting due to 2 previous errors
|
2024-01-27 13:52:06 +01:00
|
|
|
|