-
Notifications
You must be signed in to change notification settings - Fork 34
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
Out: IRust: Are you missing a ;
?
#62
Comments
|
Hi welcome! As IRust suggest you have to add ';' at the end of the function definition |
This issue reoccurs I guess I have to add a FAQ in the readme ^^ |
@sigmaSd The error given by IRust in this case isn’t very helpful IMO because it doesn’t say anything about where the semicolon should go. Most people will probably expect (from other REPLs, like IPython) functions to not require semicolons at the end, and so won’t think to put a semicolon after the function definition. Is there any way we can remove that requirement? Or at least improve the error message? |
Hi @smolck ! I think you're right since by now I saw this issue come up a lot of times, maybe we can just special case functions structs and traits maybe? Here is an initial test 60e541c, 18b78d0 would be great if you test it and report back, I just want to be sure of two things: 1- does it feel now like you expect 2- does it break other things |
I found no problem while testing it 195cbec, I think this should be resolved now |
Yea, looks good to me. Closing! |
Hi!
This rather simple code compiles just fine with
rustc
:But when pasted into IRust, gives weird error:
Curiously,
:load
from a scratch-file works just fine, too. But it's the whole point of a REPL — to not have to use scratch files right?..The text was updated successfully, but these errors were encountered: