Skip to content

Conversation

@jonas-schievink
Copy link
Contributor

I didn't know callable_item_signature was a thing, that makes this really easy.

bors r+

@bors
Copy link
Contributor

bors bot commented Jul 9, 2020

@bors bors bot merged commit 7f991d8 into rust-lang:master Jul 9, 2020
@jonas-schievink jonas-schievink deleted the arg-count-mismatch-tuple-ctor branch July 9, 2020 16:39
Tup(0);
}
",
expect![["\"Tup(0)\": Expected 2 arguments, found 1\n"]],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually now that I look at it, annotaed tests might be even better here

            struct Tup(u8, u16);
            fn f() {
                Tup(0);
              //^^^^^^ Expected 2 arguments, found 1
            }

but maybe not -- multiline spans would be awkward. See inlay_hints.rs for how such tests feel

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

Successfully merging this pull request may close these issues.

2 participants