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
I tried to translate a Java interface with a default method to Rust:
public interface Example { default int example(int a1) { return a1; } }
But the converter's output has a syntax error: the method starts with fn default example.
fn default example
pub trait Example { fn default example(&self, a1: i32) -> i32 { return a1; } }
If I remove the default keyword, it no longer has a syntax error.
default
pub trait Example { fn example(&self, a1: i32) -> i32 { return a1; } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I tried to translate a Java interface with a default method to Rust:
But the converter's output has a syntax error: the method starts with
fn default example
.If I remove the
default
keyword, it no longer has a syntax error.The text was updated successfully, but these errors were encountered: