about summary refs log tree commit diff
path: root/tests/ui/attributes/z-crate-attr/shebang.rs
blob: 195393acaf5ec91b349323a120ac1c4fa7c198c1 (plain)
1
2
3
4
5
6
#!/usr/bin/env -S cargo +nightly -Zscript
// Make sure that shebangs are still allowed even when `-Zcrate-attr` is present.
//@ check-pass
//@ compile-flags: -Zcrate-attr=feature(rustc_attrs)
#[rustc_dummy]
fn main() {}