This is an example of weird behavior of -Ywarn-unused:privates with Scala 2.12.
The lib is a private object within example package. Even though lib.doStuff method is invoked in main class,
the -Ywarn-unused:privates would mark it as unused. Combined with fatal warnings this breaks compilation for no reason.