summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/shebang/sneaky-attrib.rs
blob: b406cc3aa13c7f887f839d24c8769b78d451c2dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!//bin/bash


// This could not possibly be a shebang & also a valid rust file, since a Rust file
// can't start with `[`
/*
    [ (mixing comments to also test that we ignore both types of comments)

 */

[allow(unused_variables)]

// check-pass
fn main() {
    let x = 5;
}