mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 17:53:56 +00:00
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> {}
|