The const_constructor feature allows calling any expression of a tuple-like constructor in a const fn:
const fn make_options() {
Some(0); // OK on stable
(Option::Some)(1); // OK on stable
let f = Option::Some;
f(2); // Requires feature gate
}
cc @oli-obk @Centril
The
const_constructorfeature allows calling any expression of a tuple-like constructor in aconst fn:cc @oli-obk @Centril