mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +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.
22 lines
359 B
Rust
22 lines
359 B
Rust
//@ compile-flags:-C panic=abort
|
|
|
|
#![feature(lang_items)]
|
|
#![feature(no_core)]
|
|
#![no_core]
|
|
#![no_main]
|
|
|
|
#[panic_handler]
|
|
fn panic() -> ! {
|
|
//~^ ERROR requires `panic_info` lang_item
|
|
loop {}
|
|
}
|
|
|
|
#[lang = "pointee_sized"]
|
|
pub trait PointeeSized {}
|
|
|
|
#[lang = "meta_sized"]
|
|
pub trait MetaSized: PointeeSized {}
|
|
|
|
#[lang = "sized"]
|
|
trait Sized: MetaSized {}
|