Skip to content

fix: tuple mismatch in some tests#14175

Merged
TomAFrench merged 1 commit intomasterfrom
ab/fix-tuple-mismatch
May 8, 2025
Merged

fix: tuple mismatch in some tests#14175
TomAFrench merged 1 commit intomasterfrom
ab/fix-tuple-mismatch

Conversation

@asterite
Copy link
Contributor

@asterite asterite commented May 8, 2025

If you have code like this:

fn main() {
    let (x, y) = (1, 2, 3);
}

then Noir, unlike Rust, doesn't complain that the left-hand side tuple doesn't have exactly the number of elements that are on the right side.

That's about to change (it's a bug) when this PR merges: noir-lang/noir#8424

Before that, we can fix the existing errors here.

I chose to ignore the extra tuple element because it's currently ignored, but I don't know if the "owner" should be used for something in tests (alternatively maybe "owner" should not be returned if it's not going to be used).

@asterite asterite requested a review from nventuro May 8, 2025 19:40
@TomAFrench TomAFrench added this pull request to the merge queue May 8, 2025
Merged via the queue into master with commit 3a5f9cf May 8, 2025
7 checks passed
@TomAFrench TomAFrench deleted the ab/fix-tuple-mismatch branch May 8, 2025 22:35
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