Error Handling with the Result Type

Check the warnings in the terminal output. What does it say about the Result Type in fn display_rectangle()?

  1. Check the sdl2 documentation for the return value of the fill_rect() method. Research in the std documentation how to use this value.

  2. Change the code.

Find the solution on the next page.