Files
rust/tests/ui/consts/control-flow/try.stderr

20 lines
584 B
Plaintext
Raw Normal View History

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
|
LL | x?;
| ^^
2021-07-29 23:15:53 +02: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
--> $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
2024-11-22 02:31:42 +00:00
For more information about this error, try `rustc --explain E0015`.