summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-69396-const-no-type-in-macro.rs
blob: 45a30857413b9df442e2b60a246e9e27603d923e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
macro_rules! suite {
    ( $( $fn:ident; )* ) => {
        $(
            const A = "A".$fn();
            //~^ ERROR the name `A` is defined multiple times
            //~| ERROR missing type for `const` item
            //~| ERROR the placeholder `_` is not allowed within types on item signatures for constants
        )*
    }
}

suite! {
    len;
    is_empty;
}

fn main() {}