Add test for no_core statics
This commit is contained in:
parent
4dcf49121c
commit
fbbc73969b
1 changed files with 12 additions and 0 deletions
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…
Add table
Reference in a new issue