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-44333.rs:15:9
|
2020-09-20 17:11:00 +02:00
|
|
|
|
|
2024-11-20 02:15:21 +00:00
|
|
|
LL | const FOO: Func = foo;
|
|
|
|
|
| --------------- constant defined here
|
|
|
|
|
...
|
2020-09-20 17:11:00 +02:00
|
|
|
LL | FOO => println!("foo"),
|
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-44333.rs:16:9
|
2020-09-20 17:11:00 +02:00
|
|
|
|
|
2024-11-20 02:15:21 +00:00
|
|
|
LL | const BAR: Func = bar;
|
|
|
|
|
| --------------- constant defined here
|
|
|
|
|
...
|
2020-09-20 17:11:00 +02:00
|
|
|
LL | BAR => println!("bar"),
|
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
|
|
|
|