Skip to content

Commit 09ce4b5

Browse files
committed
Auto merge of #6176 - oli-obk:patch-1, r=alexcrichton
Future proof an unstable test statics (even extern ones) will get their type checked for a `Sized` bound in order to fix rust-lang/rust#54410
2 parents 571a542 + 81a7f47 commit 09ce4b5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/testsuite/doc.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,9 +568,12 @@ fn doc_target() {
568568
.file(
569569
"src/lib.rs",
570570
r#"
571-
#![feature(no_core)]
571+
#![feature(no_core, lang_items)]
572572
#![no_core]
573573
574+
#[lang = "sized"]
575+
trait Sized {}
576+
574577
extern {
575578
pub static A: u32;
576579
}

0 commit comments

Comments
 (0)