Skip to content

Commit 88f8bf7

Browse files
committed
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.
1 parent 0fc6be7 commit 88f8bf7

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

Diff for: tests/ui/attr-shebang.rs

-5
This file was deleted.

Diff for: tests/ui/attributes/attr-shebang.rs

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
//! Check that we accept crate-level inner attributes with the `#![..]` shebang syntax.
2+
3+
//@ check-pass
4+
5+
#![allow(stable_features)]
6+
#![feature(rust1)]
7+
pub fn main() { }

0 commit comments

Comments
 (0)