Skip to content

Commit 7dcf4fa

Browse files
committed
Add a test for rust-lang#46101
1 parent c1fddd6 commit 7dcf4fa

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

src/test/ui/issues/issue-46101.rs

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#![feature(use_extern_macros)]
2+
trait Foo {}
3+
#[derive(Foo::Anything)] //~ ERROR failed to resolve: partially resolved path in a derive macro
4+
struct S;

src/test/ui/issues/issue-46101.stderr

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
error[E0433]: failed to resolve: partially resolved path in a derive macro
2+
--> $DIR/issue-46101.rs:3:10
3+
|
4+
LL | #[derive(Foo::Anything)] //~ ERROR failed to resolve: partially resolved path in a derive macro
5+
| ^^^^^^^^^^^^^ partially resolved path in a derive macro
6+
7+
error[E0601]: `main` function not found in crate `issue_46101`
8+
|
9+
= note: consider adding a `main` function to `$DIR/issue-46101.rs`
10+
11+
error: aborting due to 2 previous errors
12+
13+
Some errors occurred: E0433, E0601.
14+
For more information about an error, try `rustc --explain E0433`.

0 commit comments

Comments
 (0)