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

Self-calls in non-object context should fail with a helpful error message #707

Closed
lkuper opened this issue Jul 18, 2011 · 0 comments
Closed

Comments

@lkuper
Copy link
Contributor

lkuper commented Jul 18, 2011

This program fails with an uninformative explicit fail during typechecking.

fn main() {

    fn foo() -> int {
        ret 3();
    }

    self.foo();

}

Fix on the way...

@lkuper lkuper closed this as completed in b6fc86a Jul 18, 2011
@ghost ghost assigned lkuper Jul 18, 2011
@lkuper lkuper removed their assignment Jun 16, 2014
keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this issue Dec 12, 2017
I'd rather avoid the duplication, this is discussed in rust-lang#707.
keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this issue Dec 12, 2017
Port rust-lang#672 and rust-lang#686 to Android.

I'd rather avoid the duplication, but this is discussed in rust-lang#707.
pdietl pushed a commit to pdietl/rust that referenced this issue Apr 23, 2020
…elude

State that no_implicit_prelude also applies to nested modules
ZuseZ4 pushed a commit to EnzymeAD/rust that referenced this issue Mar 7, 2023
* Remove cmake cmp hack

* Add CI and fix
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

1 participant