Because if is an expression and must have a particular type, both of its branch blocks must have the same type. Show what happens if you add ; after "small" in the second example.
표현식에 ’if’가 사용된 경우 다음 문과 구분하기 위해 표현식에 ;이 있어야 합니다. 컴파일러 오류를 보려면 println! 앞의 ;을 삭제하세요.