Skip to content

Commit 4da662d

Browse files
authored
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
1 parent 571a542 commit 4da662d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/testsuite/doc.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,9 @@ fn doc_target() {
571571
#![feature(no_core)]
572572
#![no_core]
573573
574+
#[lang = "sized"]
575+
trait Sized {}
576+
574577
extern {
575578
pub static A: u32;
576579
}

0 commit comments

Comments
 (0)