Pattern Match On Empty Maps

Reproducible on Pop!_OS too. I guess a pinned variable expects an exact match.

my_map = %{foo: :bar}
^my_map = %{foo: :bar, baz: :qux}
** (MatchError) no match of right hand side value: %{baz: :qux, foo: :bar}

This behaviour shows in Erlang, too

#{foo := bar} = #{foo => bar, baz => qux}.
returns #{baz => qux,foo => bar}

MyMap = #{foo => bar}.
MyMap = #{foo => bar, baz => qux}.
** exception error: no match of right hand side value #{baz => qux,foo => bar}