mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 18:27:37 +00:00
Adjust tests/ui/attr-shebang.rs
- Move `tests/ui/attr-shebang.rs` to `tests/ui/attributes/`. - Downgrade test to `check-pass`, this would fail very early if the parser did not accept `#![..]` attributes. - Briefly document test intent.
This commit is contained in:
parent
0fc6be7898
commit
88f8bf7e56
@ -1,5 +0,0 @@
|
||||
//@ run-pass
|
||||
|
||||
#![allow(stable_features)]
|
||||
#![feature(rust1)]
|
||||
pub fn main() { }
|
7
tests/ui/attributes/attr-shebang.rs
Normal file
7
tests/ui/attributes/attr-shebang.rs
Normal file
@ -0,0 +1,7 @@
|
||||
//! Check that we accept crate-level inner attributes with the `#![..]` shebang syntax.
|
||||
|
||||
//@ check-pass
|
||||
|
||||
#![allow(stable_features)]
|
||||
#![feature(rust1)]
|
||||
pub fn main() { }
|
Loading…
x
Reference in New Issue
Block a user