Skip to content

Commit b9a69c7

Browse files
committed
Fix src/test/rustdoc/foreigntype.rs
extern types do not implement DynSized, so to implement a trait for one you need to explicitly remove the DynSized bound for that trait
1 parent 62b4c91 commit b9a69c7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/test/rustdoc/foreigntype.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(extern_types)]
11+
#![feature(extern_types, dynsized)]
12+
13+
use std::marker::DynSized;
1214

1315
extern {
1416
// @has foreigntype/foreigntype.ExtType.html
@@ -20,7 +22,7 @@ impl ExtType {
2022
pub fn do_something(&self) {}
2123
}
2224

23-
pub trait Trait {}
25+
pub trait Trait: ?DynSized {}
2426

2527
// @has foreigntype/trait.Trait.html '//a[@class="foreigntype"]' 'ExtType'
2628
impl Trait for ExtType {}

0 commit comments

Comments
 (0)