Skip to content

fmt! silently ignores extra arguments #8119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kmcallister opened this issue Jul 30, 2013 · 3 comments
Closed

fmt! silently ignores extra arguments #8119

kmcallister opened this issue Jul 30, 2013 · 3 comments

Comments

@kmcallister
Copy link
Contributor

fn main() {
    fmt!("", println("hi"));
}

There's no warning/error about the extra argument. And the side effect of printing hi doesn't occur, which is confusing. (Though I think the warning would be good regardless of the presence of side effects.)

@alexcrichton
Copy link
Member

cc #2249

@brson
Copy link
Contributor

brson commented Jul 31, 2013

That's lame!

@thestinger
Copy link
Contributor

This is fixed in format!, which will replace fmt!.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants