The `?` operator expands to invoking `Try::into_result` for the argument and `Into::into` for the error of the result. In order to support these, we need to * [x] Figure out traits-in-const: https://github.com/rust-lang/rust/issues/110395 * [ ] stabilize `impl const Trait for Type` items #143874 * [x] implement `const Try` for `Result` and `Option` in libstd #143768
The
?operator expands to invokingTry::into_resultfor the argument andInto::intofor the error of the result. In order to support these, we need toimpl constand~constin the standard library #110395impl const Trait for Typeitems Tracking Issue for RFC 3762, "Make trait methods callable in const contexts" #143874const TryforResultandOptionin libstd Constify Try, From, TryFrom and relevant traits #143768