rust/tests/ui/traits/bound/auxiliary/crate_a2.rs
2023-01-11 09:32:08 +00:00

14 lines
243 B
Rust

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> {}