mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
56d6b4e427
and migrate most of remaining `error-pattern`s to it.
14 lines
236 B
Rust
14 lines
236 B
Rust
//@ revisions: cfail1 cfail2
|
|
//@ build-pass
|
|
//@ needs-crate-type: cdylib
|
|
|
|
#![crate_type="lib"]
|
|
#![crate_type="cdylib"]
|
|
|
|
#[allow(unused_imports)]
|
|
use std::alloc::System;
|
|
|
|
#[cfg(cfail1)]
|
|
#[global_allocator]
|
|
static ALLOC: System = System;
|