]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-ui/auxiliary/overflow.rs
Rollup merge of #106709 - khuey:disable_split_dwarf_inlining_by_default, r=davidtwco
[rust.git] / tests / rustdoc-ui / auxiliary / overflow.rs
1 pub struct B0;
2 pub struct B1;
3 use std::ops::Shl;
4 use std::ops::Sub;
5 pub type Shleft<A, B> = <A as Shl<B>>::Output;
6 pub type Sub1<A> = <A as Sub<B1>>::Output;
7 pub struct UInt<U, B> {
8     pub(crate) msb: U,
9     pub(crate) lsb: B,
10 }
11 impl<U, B, Ur, Br> Shl<UInt<Ur, Br>> for UInt<U, B>
12 where
13     UInt<Ur, Br>: Sub<B1>,
14     UInt<UInt<U, B>, B0>: Shl<Sub1<UInt<Ur, Br>>>,
15 {
16     type Output = Shleft<UInt<UInt<U, B>, B0>, Sub1<UInt<Ur, Br>>>;
17     fn shl(self, rhs: UInt<Ur, Br>) -> Self::Output {
18         unimplemented!()
19     }
20 }