#![feature(doc_notable_trait)] #![feature(lang_items)] #![feature(no_core)] #![no_core] #[lang = "owned_box"] pub struct Box; impl Box { pub fn new(x: T) -> Box { Box } } #[doc(notable_trait)] pub trait FakeIterator {} impl FakeIterator for Box {} #[lang = "pin"] pub struct Pin; impl Pin { pub fn new(x: T) -> Pin { Pin } } impl FakeIterator for Pin {} // @!has doc_notable_trait_box_is_not_an_iterator/fn.foo.html '//*' 'Notable' pub fn foo(x: T) -> Box { Box::new(x) } // @!has doc_notable_trait_box_is_not_an_iterator/fn.bar.html '//*' 'Notable' pub fn bar(x: T) -> Pin { Pin::new(x) }