Skip to main content

implementors/
lib.rs

1#![feature(negative_impls)]
2
3pub trait Whatever {
4    type Foo;
5
6    fn method() {}
7}
8
9pub struct Struct;
10pub struct Struct2;
11
12impl Whatever for Struct {
13    type Foo = u8;
14}
15
16impl !Whatever for Struct2 {}
17
18impl http::HttpTrait for Struct {}
19
20mod traits {
21    pub trait TraitToReexport {
22        fn method() {}
23    }
24}
25
26#[doc(inline)]
27pub use traits::TraitToReexport;