]> git.lizzy.rs Git - rust.git/blob - tests/ui/traits/bound/auxiliary/crate_a1.rs
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / traits / bound / auxiliary / crate_a1.rs
1 pub trait Bar {}
2
3 pub fn try_foo(x: impl Bar) {}
4
5 pub struct ImplementsTraitForUsize<T> {
6     _marker: std::marker::PhantomData<T>,
7 }
8
9 impl Bar for ImplementsTraitForUsize<usize> {}