Skip to content

Commit 5f2790c

Browse files
committed
using rustc in the middle of an attrpath errors
1 parent bbe8536 commit 5f2790c

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
mod rustc {
2+
pub use std::prelude::v1::test;
3+
}
4+
5+
#[crate::rustc::test]
6+
//~^ ERROR: attributes starting with `rustc` are reserved for use by the `rustc` compiler
7+
fn foo() {}
8+
9+
fn main() {}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
error: attributes starting with `rustc` are reserved for use by the `rustc` compiler
2+
--> $DIR/rustc-in-attr-path.rs:5:10
3+
|
4+
LL | #[crate::rustc::test]
5+
| ^^^^^
6+
7+
error: aborting due to 1 previous error
8+

0 commit comments

Comments
 (0)