Skip to content
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

Calling an iter (as if it were a function) hits llvm assert #771

Closed
jruderman opened this issue Jul 29, 2011 · 1 comment
Closed

Calling an iter (as if it were a function) hits llvm assert #771

jruderman opened this issue Jul 29, 2011 · 1 comment
Labels
A-type-system Area: Type system

Comments

@jruderman
Copy link
Contributor

iter i() { }
fn main() { i(); }

Assertion failed: ((NumParams == FTy->getNumParams() || (FTy->isVarArg() && NumParams > FTy->getNumParams())) && "Calling a function with bad signature!"), function init, file Instructions.cpp, line 187.

@msullivan
Copy link
Contributor

Should be rejected by the typechecker.

@ghost ghost assigned msullivan Aug 3, 2011
keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this issue Dec 12, 2017
fuchsia: mxio was renamed to fdio

As a side effect of the rename of the Magenta kernel to Zircon, the mxio library was renamed to fdio, and the linker directive needs to be updated.
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this issue May 8, 2019
Changes:
````
rustup rust-lang#60586
Add test for rust-lang#771.
Clean up while_loop tests
````
bors added a commit that referenced this issue May 8, 2019
submodules: update clippy from fc96aa0 to 341c96a

Fixes clippy toolstate

Fixes #60623

Changes:
````
rustup #60586
Add test for #771.
Clean up while_loop tests
````

r? @Manishearth
celinval added a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-type-system Area: Type system
Projects
None yet
Development

No branches or pull requests

2 participants