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
The following MWE fails to compile with error: expected item after doc comment
fn main(){
}
/// Hi
this one fails to compile with a generic unexpected token: /// some input
fn main(){
}
fn foo(
/// some input
x: u8
) {
}
Comments should be ignored by the compiler, even doc comments. It makes sense to sanity-check comments during compilation, but can this be a warning instead of an error? In general, the /// token should be treated as a comment after perhaps linting for doc comment correctness.
The text was updated successfully, but these errors were encountered:
source
The following MWE fails to compile with
error: expected item after doc comment
this one fails to compile with a generic
unexpected token: /// some input
Comments should be ignored by the compiler, even doc comments. It makes sense to sanity-check comments during compilation, but can this be a warning instead of an error? In general, the
///
token should be treated as a comment after perhaps linting for doc comment correctness.The text was updated successfully, but these errors were encountered: