blob: d6057db5e63f1644a544d4f8a023ea1270effb90 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
pub struct Foo;
pub trait Bar {}
impl Bar for Foo {}
pub struct DoesNotImplementTrait;
pub struct ImplementsWrongTraitConditionally<T> {
_marker: std::marker::PhantomData<T>,
}
impl Bar for ImplementsWrongTraitConditionally<isize> {}
|