mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
21 lines
527 B
Rust
21 lines
527 B
Rust
// This test certify that we can mix attribute macros from Rust and external proc-macros.
|
|
// For instance, `#[derive(Default)]` uses `#[default]` and `#[derive(SmartPointer)]` uses
|
|
// `#[pointee]`.
|
|
// The scoping rule should allow the use of the said two attributes when external proc-macros
|
|
// are in scope.
|
|
|
|
//@ check-pass
|
|
//@ aux-build: another-proc-macro.rs
|
|
//@ compile-flags: -Zunpretty=expanded
|
|
|
|
#![feature(derive_smart_pointer)]
|
|
|
|
#[macro_use]
|
|
extern crate another_proc_macro;
|
|
|
|
#[pointee]
|
|
fn f() {}
|
|
|
|
#[default]
|
|
fn g() {}
|