mirror of
https://github.com/rust-lang/rust
synced 2024-09-05 16:57:03 +00:00
18 lines
382 B
Rust
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() {}
|