10 lines
182 B
Rust
10 lines
182 B
Rust
pub trait Bar {}
|
|
|
|
pub fn try_foo(x: impl Bar) {}
|
|
|
|
pub struct ImplementsTraitForUsize<T> {
|
|
_marker: std::marker::PhantomData<T>,
|
|
}
|
|
|
|
impl Bar for ImplementsTraitForUsize<usize> {}
|