1 // aux-build:incoherent-impl-types.rs
5 #![feature(rustc_attrs)]
7 extern crate incoherent_impl_types;
9 // The only way this actually shows up is if the type gets inlined.
11 pub use incoherent_impl_types::FooTrait;
13 // @has foo/trait.FooTrait.html
14 // @count - '//section[@id="method.do_something"]' 1
16 #[rustc_allow_incoherent_impl]
17 pub fn do_something() {}
21 pub use incoherent_impl_types::FooStruct;
23 // @has foo/struct.FooStruct.html
24 // @count - '//section[@id="method.do_something"]' 1
26 #[rustc_allow_incoherent_impl]
27 pub fn do_something() {}