@olsonseank I can understand why `struct S` is an error. My question is more about why `fn f()` doesn't cause a warning, since most uses of it will. Even the following:
fn f() {}
fn g() { f(); }
produces a compiler warning saying that `T` can't be inferred, but no warning about the useless `T` parameter. It's occasionally taken me a minute to realize that the correct solution is to remove `T`, not to provide a type for it.
In reply to
Ben Pfaff
@blp@framapiaf.org
GNU PSPP maintainer. RenFaire enthusiast. D&D player. Against fascism and tyranny. He/him.
framapiaf.org
0
1
0
Conversation (1)
Showing 0 of 1 cached locally.
Syncing comments from the remote thread. 1 more reply is still loading.
Loading comments...