mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
parent
b3ef934ccb
commit
25242fe93f
395 changed files with 14569 additions and 5755 deletions
|
@ -607,6 +607,30 @@ fn attr_in_source_file_end() {
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn invalid_path() {
|
||||
check(
|
||||
r#"
|
||||
//- proc_macros: identity
|
||||
#[proc_macros:::$0]
|
||||
struct Foo;
|
||||
"#,
|
||||
expect![[r#""#]],
|
||||
);
|
||||
|
||||
check(
|
||||
r#"
|
||||
//- minicore: derive, copy
|
||||
mod foo {
|
||||
pub use Copy as Bar;
|
||||
}
|
||||
#[derive(foo:::::$0)]
|
||||
struct Foo;
|
||||
"#,
|
||||
expect![""],
|
||||
);
|
||||
}
|
||||
|
||||
mod cfg {
|
||||
use super::*;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue