Skip to content
Permalink
Browse files

Add a test for #46101

  • Loading branch information...
varkor committed Feb 25, 2019
1 parent ec56d6e commit 776411bb5aceef649b8d090783a809f7888a6265
Showing with 18 additions and 0 deletions.
  1. +4 −0 src/test/ui/issues/issue-46101.rs
  2. +14 −0 src/test/ui/issues/issue-46101.stderr
@@ -0,0 +1,4 @@
#![feature(use_extern_macros)]
trait Foo {}
#[derive(Foo::Anything)] //~ ERROR failed to resolve: partially resolved path in a derive macro
struct S;
@@ -0,0 +1,14 @@
error[E0433]: failed to resolve: partially resolved path in a derive macro
--> $DIR/issue-46101.rs:3:10
|
LL | #[derive(Foo::Anything)] //~ ERROR failed to resolve: partially resolved path in a derive macro
| ^^^^^^^^^^^^^ partially resolved path in a derive macro

error[E0601]: `main` function not found in crate `issue_46101`
|
= note: consider adding a `main` function to `$DIR/issue-46101.rs`

error: aborting due to 2 previous errors

Some errors occurred: E0433, E0601.
For more information about an error, try `rustc --explain E0433`.

0 comments on commit 776411b

Please sign in to comment.
You can’t perform that action at this time.