Skip to content

Commit 9f06585

Browse files
committed
improves outer mod attribute test
1 parent 9fb94b3 commit 9f06585

File tree

2 files changed

+16
-25
lines changed

2 files changed

+16
-25
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//! Regression test to check that outer attributes applied to the first module item is applied to
2+
//! its attached module item only, and not also to other subsequent module items
3+
//!
4+
//! Commit: <https://github.com/rust-lang/rust/commit/7aee9f7b56f8d96f9444ebb1d06e32e024b81974>
5+
6+
//@ check-pass
7+
//@ compile-flags: --cfg=first
8+
//@ no-auto-check-cfg
9+
10+
#[cfg(first)]
11+
mod hello {}
12+
13+
#[cfg(not_set)]
14+
mod hello {}
15+
16+
fn main() {}

Diff for: tests/ui/dupe-first-attr.rs

-25
This file was deleted.

0 commit comments

Comments
 (0)