rust/tests/ui/parser/issues/invalid-path-sep-in-fn-definition-issue-130791.rs
surechen d0165956fe Add suggestion for removing invalid path separator :: in function definition.
for example: `fn invalid_path_separator::<T>() {}`

fixes: #130791
2024-09-27 15:41:04 +08:00

8 lines
144 B
Rust

//@ run-rustfix
#[allow(dead_code)]
fn invalid_path_separator::<T>() {}
//~^ ERROR invalid path separator in function definition
fn main() {}