mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-03 03:49:26 +00:00
14 lines
243 B
Rust
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> {}
|