fd36b3a4a8
move derive_smart_pointer into removed set
31 lines
765 B
Plaintext
31 lines
765 B
Plaintext
#![feature(prelude_import)]
|
|
#![no_std]
|
|
// This test certify that we can mix attribute macros from Rust and external proc-macros.
|
|
// For instance, `#[derive(Default)]` uses `#[default]` and `#[derive(CoercePointee)]` 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_coerce_pointee)]
|
|
#[prelude_import]
|
|
use ::std::prelude::rust_2015::*;
|
|
#[macro_use]
|
|
extern crate std;
|
|
|
|
#[macro_use]
|
|
extern crate another_proc_macro;
|
|
|
|
|
|
const _: () =
|
|
{
|
|
const POINTEE_MACRO_ATTR_DERIVED: () = ();
|
|
};
|
|
const _: () =
|
|
{
|
|
const DEFAULT_MACRO_ATTR_DERIVED: () = ();
|
|
};
|