mutable struct Coords
x::Float64
y::Float64
z::Float64
end
Coords() = Coords(rand(), rand(), rand())
v = Coords()
println(v)
println(applicable(first, v))
println(first(v))
yields an (expected) error after passing (wrongly) the applicable test. What is wrong?
Coords(0.8974851346762911, 0.17094986513890453, 0.9623104755087182)
true
ERROR: LoadError: MethodError: no method matching iterate(::Coords)