-module(bug_bin).
-compile(export_all).

foo(<<Rest/binary>>) when Rest /= "0" -> %Rest /= << >> ->
    ok;
foo(<<>>) ->
    ok.	
