mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
15 lines
210 B
Rust
15 lines
210 B
Rust
//@ aux-build:derive-unstable.rs
|
|
|
|
#![allow(warnings)]
|
|
|
|
#[macro_use]
|
|
extern crate derive_unstable;
|
|
|
|
#[derive(Unstable)]
|
|
//~^ ERROR: use of unstable library feature
|
|
struct A;
|
|
|
|
fn main() {
|
|
unsafe { foo(); }
|
|
}
|