mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
Add test for no_core statics
This commit is contained in:
parent
4dcf49121c
commit
fbbc73969b
12
src/test/ui/static_sized_requirement.rs
Normal file
12
src/test/ui/static_sized_requirement.rs
Normal file
@ -0,0 +1,12 @@
|
||||
// compile-pass
|
||||
|
||||
#![feature(no_core, lang_items)]
|
||||
#![no_core]
|
||||
#![crate_type = "lib"]
|
||||
|
||||
#[lang = "sized"]
|
||||
trait Sized {}
|
||||
|
||||
extern {
|
||||
pub static A: u32;
|
||||
}
|
Loading…
Reference in New Issue
Block a user