mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00

minicore makes it much easier to add new language items to all of the existing `no_core` tests.
14 lines
183 B
Rust
14 lines
183 B
Rust
//@ add-core-stubs
|
|
//@ check-pass
|
|
|
|
#![feature(no_core, lang_items)]
|
|
#![no_core]
|
|
#![crate_type = "lib"]
|
|
|
|
extern crate minicore;
|
|
use minicore::*;
|
|
|
|
extern "C" {
|
|
pub static A: u32;
|
|
}
|