2024-11-22 02:31:42 +00:00
|
|
|
error[E0015]: `?` is not allowed on `Option<i32>` in constant functions
|
2020-05-21 12:49:38 -07:00
|
|
|
--> $DIR/try.rs:6:5
|
2019-11-17 21:11:42 -08:00
|
|
|
|
|
|
|
|
|
LL | x?;
|
|
|
|
|
| ^^
|
2021-07-29 23:15:53 +02:00
|
|
|
|
|
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<i32>` in constant functions
|
2024-02-01 22:45:00 +00:00
|
|
|
--> $DIR/try.rs:6:5
|
|
|
|
|
|
|
|
|
|
|
LL | x?;
|
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
|
|
|
= 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
|
2019-11-17 21:11:42 -08:00
|
|
|
|
2024-11-22 02:31:42 +00:00
|
|
|
For more information about this error, try `rustc --explain E0015`.
|