2024-11-22 02:31:42 +00:00
|
|
|
error[E0015]: `?` is not allowed on `Option<()>` in constant functions
|
2021-07-18 01:34:50 +00:00
|
|
|
--> $DIR/const-try-feature-gate.rs:4:5
|
|
|
|
|
|
|
|
|
LL | Some(())?;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
2024-02-01 22:45:00 +00: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-02-01 22:45:00 +00:00
|
|
|
--> $DIR/const-try-feature-gate.rs:4:5
|
|
|
|
|
|
|
|
|
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
|
2021-07-18 01:34:50 +00:00
|
|
|
|
2024-11-22 02:31:42 +00:00
|
|
|
For more information about this error, try `rustc --explain E0015`.
|