Why does the following code not compile.
Consumer con = (s) -> System.out::println;
It says
The target type of this expression must be a functional interface
even though Consumer is a Functional Interface. The below works just fine.
Consumer con2 = (s) -> {System.out.println(s);};