mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-09 19:20:53 +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.
17 lines
430 B
Rust
17 lines
430 B
Rust
#![feature(no_core, lang_items, export_stable)]
|
|
#![allow(incomplete_features)]
|
|
#![crate_type = "sdylib"]
|
|
#![no_core]
|
|
|
|
#[lang = "pointee_sized"]
|
|
//~^ ERROR lang items are not allowed in stable dylibs
|
|
pub trait PointeeSized {}
|
|
|
|
#[lang = "meta_sized"]
|
|
//~^ ERROR lang items are not allowed in stable dylibs
|
|
pub trait MetaSized: PointeeSized {}
|
|
|
|
#[lang = "sized"]
|
|
//~^ ERROR lang items are not allowed in stable dylibs
|
|
trait Sized {}
|