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
wasm_bindgen attribute doesn't work for extern blocks in 2024 edition.
wasm_bindgen
rustc 1.84.0-nightly
use wasm_bindgen::prelude::*; #[wasm_bindgen] extern { pub fn test(); }
The example should compile.
error: extern blocks must be unsafe --> src/test.rs:5:9 | 5 | pub fn test(); | ^^^^
Note: Adding the unsafe keyword to the extern block doesn't help, same error.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the Bug
wasm_bindgen
attribute doesn't work for extern blocks in 2024 edition.Steps to Reproduce
rustc 1.84.0-nightly
and configure project to use 2024 edition.Expected Behavior
The example should compile.
Actual Behavior
Note: Adding the unsafe keyword to the extern block doesn't help, same error.
The text was updated successfully, but these errors were encountered: