1 2 3 4 5 6 7 8 9
//! One `#[dispatch]` attribute per trait method. #[whichever::dispatchable] trait Shape { #[dispatch(mismatch = false)] #[dispatch(mismatch = true)] fn same(&self, other: &Self) -> bool; } fn main() {}