summary refs log tree commit diff
path: root/src/test/ui/parser/shebang/shebang-doc-comment.rs
blob: 7dbb9eebc757127599eb861fdba58f14ac0f3ed0 (plain)
1
2
3
4
5
6
#!///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.