diff options
Diffstat (limited to 'tests/ui/resolve/path-attr-in-const-block.rs')
| -rw-r--r-- | tests/ui/resolve/path-attr-in-const-block.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/resolve/path-attr-in-const-block.rs b/tests/ui/resolve/path-attr-in-const-block.rs new file mode 100644 index 00000000000..076511d26d6 --- /dev/null +++ b/tests/ui/resolve/path-attr-in-const-block.rs @@ -0,0 +1,9 @@ +// issue#126516 +// issue#126647 + +fn main() { + const { + #![path = foo!()] + //~^ ERROR: cannot find macro `foo` in this scope + } +} |
