We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This is using "rustc 1.0.0-nightly (458a6a2 2015-01-25 21:20:37 +0000)".
Code:
#![start] #[no_mangle] fn main() {}
Command line:
rustc test.rs
Error:
test.rs:1:1: 1:10 warning: unused attribute, #[warn(unused_attributes)] on by default test.rs:1 #![start] ^~~~~~~~~ rustc: /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/llvm/include/llvm/Support/Casting.h:237: typename llvm::cast_retty<X, Y*>::ret_type llvm::cast(Y*) [with X = llvm::Function; Y = llvm::Value; typename llvm::cast_retty<X, Y*>::ret_type = llvm::Function*]: Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed. Aborted
The text was updated successfully, but these errors were encountered:
Sub-issue of #10883. (There's internal main function which calls main function provided by user, so #[no_mangle] causes name clash.)
main
#[no_mangle]
Sorry, something went wrong.
Aha, I should have tried removing the "#![start]" to minimize it further.
Duplicate of #19495
No branches or pull requests
This is using "rustc 1.0.0-nightly (458a6a2 2015-01-25 21:20:37 +0000)".
Code:
Command line:
Error:
The text was updated successfully, but these errors were encountered: