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
2 changed files with 7 additions and 5 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue