Skip to content

Commit 58a0cfa

Browse files
add the test
1 parent a2db928 commit 58a0cfa

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
extern crate proc_macro;
2+
use proc_macro::TokenStream;
3+
4+
#[proc_macro_derive(RustEmbed)]
5+
pub fn rust_embed_derive(_input: TokenStream) -> TokenStream {
6+
TokenStream::new()
7+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
//@ proc-macro: same-res-ambigious-extern-macro.rs
2+
3+
#[allow(unused_imports)]
4+
#[macro_use]
5+
extern crate same_res_ambigious_extern_macro;
6+
pub use same_res_ambigious_extern_macro::*;
7+
8+
pub trait RustEmbed {}
9+
10+
pub use RustEmbed as Embed;
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
//@ check-pass
2+
//@ aux-build: same-res-ambigious-extern.rs
3+
4+
extern crate same_res_ambigious_extern;
5+
use same_res_ambigious_extern::Embed;
6+
7+
8+
#[derive(Embed)]
9+
struct Foo{}
10+
11+
fn main(){}

0 commit comments

Comments
 (0)