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:
许杰友 Jieyou Xu (Joe) 2024-12-17 19:22:21 +08:00
parent 0fc6be7898
commit 88f8bf7e56
2 changed files with 7 additions and 5 deletions

View file

@ -1,5 +0,0 @@
//@ run-pass
#![allow(stable_features)]
#![feature(rust1)]
pub fn main() { }

View 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() { }