We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
modules/mod-cfg-multiple-targets.rs
1 parent 7054fb4 commit 58e2e90Copy full SHA for 58e2e90
tests/ui/modules/mod-cfg-multiple-targets.rs
@@ -1,7 +1,24 @@
1
//@ run-pass
2
3
-// Regression test for a problem with the first mod attribute
4
-// being applied to every mod
+//! This test was to solve a bug as the rust notation for attributes on modules was transitioning
+//! from
5
+//!
6
+//! ```
7
+//! mod foo = "foo.rs";
8
9
10
+//! to
11
12
13
+//! #[path = "foo.rs"]
14
+//! mod foo;
15
16
17
+//! This specifically was testing when an attribute was being applied to all modules instead of the
18
+//! first one
19
20
+//! Added in commit: https://github.com/rust-lang/rust/commit/7aee9f7b56f8d96f9444ebb1d06e32e024b81974
21
+//! Issue : https://github.com/rust-lang/rust/issues/906
22
23
#[cfg(target_os = "linux")]
24
mod hello {}
0 commit comments