rust/tests/ui/attributes/export/lang-item.rs
David Wood 322cc31504
tests: {Meta,Pointee}Sized in non-minicore tests
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.
2025-06-16 23:04:33 +00:00

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 {}