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

test: Add tests for closed issue #10764 #14598

Closed
wants to merge 1 commit into from

Conversation

alexcrichton
Copy link
Member

Closes #10764

extern fn bar() {}

fn main() { f(bar) }
//~^ ERROR: expectd `fn()` but found `extern "C" fn()`
Copy link
Member

Choose a reason for hiding this comment

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

ERROR: expectd expected but found expectd.

;P

(r=me with spelling)

bors added a commit that referenced this pull request Jun 2, 2014
@bors bors closed this Jun 3, 2014
@alexcrichton alexcrichton deleted the triage branch June 4, 2014 16:44
bors added a commit to rust-lang-ci/rust that referenced this pull request Jun 5, 2023
…lnicola

Fix release channel detection

We detect toolchain's release channel by looking at pre-release identifier of cargo/rustc's version string. It's empty for stable, "beta" or "beta.x" for beta, and "nightly" for nightly.

See rust-lang/rust's [bootstrap code] for how the version string is determined.

[bootstrap code]: https://github.com/rust-lang/rust/blob/e49122fb1ca87a6c3e3c22abb315fc75cfe8daed/src/bootstrap/lib.rs#L1244
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.

Inconsistent behaviour & peculiar error messages for extern "Rust" fn main()
3 participants