rust/src/test/ui/parser/shebang/shebang-doc-comment.rs

7 lines
257 B
Rust
Raw Normal View History

#!///bin/bash
[allow(unused_variables)]
//~^^ ERROR expected `[`, found doc comment
// Doc comment is misinterpreted as a whitespace (regular comment) during shebang detection.
// Even if it wasn't, it would still result in an error, just a different one.