fn main(){ } fn test_result() -> Result<(),()> { let a:Option<()> = Some(()); a?;//~ ERROR the `?` operator can only be used Ok(()) } fn test_option() -> Option{ let a:Result = Ok(5); a?;//~ ERROR the `?` operator can only be used Some(5) }