How to declare type variables using elixir/dialyixir?

Is the error the same?

What about

@spec id(t) :: t when t: any