You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mod a {extern{fnmy_fn(a:*u8);}}mod b {extern{fnmy_fn(a:*u16);}}fnmain(){}
Compiling it causes the following error:
Assertion failed: isa<X>(Val) && "cast<Ty>() argument of incompatible type!", file c:/Users/philii/rust/src/llvm/include/llvm/Support/Casting.h, line 231
I am not sure what the correct handling of this case should be. One easy solution would be to disallow multiple declarations of the same extern function in the same crate.
The text was updated successfully, but these errors were encountered:
Fix metadata code block syntax highlighting
changelog: none
Fixes code fence block in the metadata collector to change ` ``` ` or ` ```ignore` or ` ```rust,ignore` to ` ```rust`. This makes syntax highlighting work more consistently on the website.
See the following code:
Compiling it causes the following error:
I am not sure what the correct handling of this case should be. One easy solution would be to disallow multiple declarations of the same extern function in the same crate.
The text was updated successfully, but these errors were encountered: