mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-28 05:34:45 +00:00

As before, add `MetaSized` and `PointeeSized` traits to all of the non-minicore `no_core` tests so that they don't fail for lack of language items.
20 lines
353 B
Rust
20 lines
353 B
Rust
#![feature(lang_items, no_core)]
|
|
#![no_core]
|
|
#![no_main]
|
|
|
|
#[lang = "pointee_sized"]
|
|
pub trait PointeeSized {}
|
|
|
|
#[lang = "meta_sized"]
|
|
pub trait MetaSized: PointeeSized {}
|
|
|
|
#[lang = "sized"]
|
|
trait Sized: MetaSized { }
|
|
|
|
struct S;
|
|
|
|
#[no_mangle]
|
|
extern "C" fn main(argc: i32, _argv: *const *const u8) -> i32 {
|
|
argc //~ ERROR requires `copy` lang_item
|
|
}
|