diff options
| author | Michael Goulet <michael@errs.io> | 2025-02-03 19:00:20 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-02-04 01:05:31 +0000 |
| commit | 36839759ce535c0496b8060c3d4beb41a170dd6d (patch) | |
| tree | bd1f71b0d3d2b01f450b1f6d0cf35c27cb916ce1 /tests/rustdoc-json | |
| parent | 0d907c17a8258b012f6b1e327709ef5789128167 (diff) | |
| download | rust-36839759ce535c0496b8060c3d4beb41a170dd6d.tar.gz rust-36839759ce535c0496b8060c3d4beb41a170dd6d.zip | |
Add missing lang items in no_core tests in rustdoc
Diffstat (limited to 'tests/rustdoc-json')
| -rw-r--r-- | tests/rustdoc-json/primitives/primitive_impls.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/rustdoc-json/primitives/primitive_impls.rs b/tests/rustdoc-json/primitives/primitive_impls.rs index 77d1d68f8e4..58c222ce4f0 100644 --- a/tests/rustdoc-json/primitives/primitive_impls.rs +++ b/tests/rustdoc-json/primitives/primitive_impls.rs @@ -1,4 +1,4 @@ -#![feature(no_core)] +#![feature(no_core, lang_items)] #![feature(rustc_attrs)] #![feature(rustdoc_internals)] #![no_core] @@ -6,6 +6,9 @@ //@ set impl_i32 = "$.index[*][?(@.docs=='Only core can do this')].id" +#[lang = "sized"] +trait Sized {} + /// Only core can do this impl i32 { //@ set identity = "$.index[*][?(@.docs=='Do Nothing')].id" |
