Fix ICE on pub macros defined within a non-module type namespace.
This commit is contained in:
parent
ce3ecd612f
commit
255f107cac
2 changed files with 21 additions and 5 deletions
|
|
@ -72,3 +72,11 @@ const __: () = {
|
|||
pub mod __ {
|
||||
// @!has krate/__/macro.in_both_const_and_mod.html
|
||||
}
|
||||
|
||||
enum Enum {
|
||||
Crazy = {
|
||||
// @!has krate/macro.this_is_getting_weird.html;
|
||||
pub macro this_is_getting_weird() {}
|
||||
42
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue