]> git.lizzy.rs Git - rust.git/blob - src/test/ui/proc-macro/expand-to-unstable.rs
Merge commit 'c19edfd71a1d0ddef86c2c67fdb40718d40a72b4' into sync_cg_clif-2022-07-25
[rust.git] / src / test / ui / proc-macro / expand-to-unstable.rs
1 // aux-build:derive-unstable.rs
2
3 #![allow(warnings)]
4
5 #[macro_use]
6 extern crate derive_unstable;
7
8 #[derive(Unstable)]
9 //~^ ERROR: use of unstable library feature
10 struct A;
11
12 fn main() {
13     unsafe { foo(); }
14 }