//! Regression test that Option and ControlFlow can have downstream FromResidual impls. //! cc https://github.com/rust-lang/rust/issues/99940, //! This does NOT test that issue in general; Option and ControlFlow's FromResidual //! impls in core were changed to not be affected by that issue. use core::ops::{ControlFlow, FromResidual}; struct Local; impl FromResidual for Option { fn from_residual(_: Local) -> Option { unimplemented!() } } impl FromResidual for ControlFlow { fn from_residual(_: Local) -> ControlFlow { unimplemented!() } } impl FromResidual for Result { fn from_residual(_: Local) -> Result { unimplemented!() } }