1 // Tests that we don't fail with an overflow error for certain
3 // See https://github.com/rust-lang/rust/pull/72936#issuecomment-643676915
9 struct RustInterner<'tcx> {
13 impl<'tcx> Interner for RustInterner<'tcx> {
14 type InternedType = Box<TyData<Self>>;
17 enum TyData<I: Interner> {
18 FnDef(I::InternedType)
21 struct VariableKind<I: Interner>(I::InternedType);
23 // @has overflow/struct.BoundVarsCollector.html
24 // @has - '//h3[@class="code-header"]' "impl<'tcx> Send for BoundVarsCollector<'tcx>"
25 pub struct BoundVarsCollector<'tcx> {
26 val: VariableKind<RustInterner<'tcx>>
29 fn is_send<T: Send>() {}
31 struct MyInterner<'tcx> {