From b9a69c7c4a72c7cb453d81f06b5dede0d1f43961 Mon Sep 17 00:00:00 2001 From: Michael Hewson Date: Mon, 20 Nov 2017 19:11:10 -0500 Subject: [PATCH] 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 --- src/test/rustdoc/foreigntype.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/test/rustdoc/foreigntype.rs b/src/test/rustdoc/foreigntype.rs index 06447ffaa753d..2547fd9882627 100644 --- a/src/test/rustdoc/foreigntype.rs +++ b/src/test/rustdoc/foreigntype.rs @@ -8,7 +8,9 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#![feature(extern_types)] +#![feature(extern_types, dynsized)] + +use std::marker::DynSized; extern { // @has foreigntype/foreigntype.ExtType.html @@ -20,7 +22,7 @@ impl ExtType { pub fn do_something(&self) {} } -pub trait Trait {} +pub trait Trait: ?DynSized {} // @has foreigntype/trait.Trait.html '//a[@class="foreigntype"]' 'ExtType' impl Trait for ExtType {}