rust/tests/ui/macros/issue-69396-const-no-type-in-macro.rs
2023-04-20 15:06:17 -03:00

18 lines
382 B
Rust

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() {}