2024-11-22 02:31:42 +00:00
|
|
|
error[E0015]: `?` is not allowed on `Option<()>` in constant functions
|
2024-10-21 19:37:48 +00:00
|
|
|
--> $DIR/hir-const-check.rs:14:9
|
2020-03-02 10:53:58 -08:00
|
|
|
|
|
2020-06-25 17:43:48 -07:00
|
|
|
LL | Some(())?;
|
|
|
|
|
| ^^^^^^^^^
|
2021-07-29 23:15:53 +02:00
|
|
|
|
|
2024-10-26 11:35:16 +08:00
|
|
|
= note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
|
|
|
|
|
|
2024-11-22 02:31:42 +00:00
|
|
|
error[E0015]: `?` is not allowed on `Option<()>` in constant functions
|
2024-10-26 11:35:16 +08:00
|
|
|
--> $DIR/hir-const-check.rs:14:9
|
|
|
|
|
|
|
|
|
|
|
LL | Some(())?;
|
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
= note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
|
|
|
|
|
|
2024-11-22 02:31:42 +00:00
|
|
|
error: aborting due to 2 previous errors
|
2020-03-02 10:53:58 -08:00
|
|
|
|
2024-11-22 02:31:42 +00:00
|
|
|
For more information about this error, try `rustc --explain E0015`.
|