about summary refs log tree commit diff
path: root/tests/ui/parser/shebang/sneaky-attrib.rs
blob: e22c45cc39f58f9436854f11bb2b3302d5e97a65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!//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
//@ reference: input.shebang.inner-attribute
fn main() {
    let x = 5;
}