about summary refs log tree commit diff
path: root/tests/ui/resolve/path-attr-in-const-block.rs
blob: 69be65bda3f8b2fc93342636c9560676045eec6c (plain)
1
2
3
4
5
6
7
8
9
10
// issue#126516
// issue#126647

fn main() {
    const {
        #![path = foo!()]
        //~^ ERROR: cannot find macro `foo` in this scope
        //~| ERROR malformed `path` attribute input
    }
}