Using an empty list as argument to defstruct/1works for me:
iex(1)> defmodule S do
...(1)> defstruct []
...(1)> end
iex(2)> %S{}
%S{}
Using an empty list as argument to defstruct/1works for me:
iex(1)> defmodule S do
...(1)> defstruct []
...(1)> end
iex(2)> %S{}
%S{}