The function being invoked exists, and has the correct arity, but will not succeed.
defmodule Example do def ok() do fun = fn :ok -> :ok end fun.(:error) end end