Sign in
android
/
toolchain
/
rustc
/
87880447cc5437c45a3562596a9766d9797e7318
/
.
/
tests
/
ui
/
attributes
/
macro_export_on_decl_macro.rs
blob: e6fe66ac6c30e230aaaf21aca3cb2a7225ed0974 [
file
] [
log
] [
blame
]
// Using #[macro_export] on a decl macro has no effect and should warn
#![
feature
(
decl_macro
)]
#![
deny
(
unused
)]
#[
macro_export
]
//~ ERROR `#[macro_export]` has no effect on declarative macro definitions
pub
macro foo
()
{}
fn
main
()
{}