Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Test CoreTraitLocal_for_AliasToKnown_in_Foo

Source location: tests/coherence_orphan.rs:472

#[test]
fn CoreTraitLocal_for_AliasToKnown_in_Foo() {
    // TODO: see comment in `orphan_check` from prev commit
    FormalityTest::new(crates![crate core {
        trait CoreTrait<T> {}

        trait Unit {
            type Assoc : [];
        }

        impl<T> Unit for T {
            type Assoc = ();
        }
    },
    crate foo {
        struct FooStruct {}
        impl CoreTrait<FooStruct> for <() as Unit>::Assoc {}
    }])
    .skip_execute()
    .ok()
}

Rules proved (38)

JudgmentRuleAll tests of this rule
check_adtcheck adt71 tests
check_all_cratescheck all prefixes331 tests
check_associated_tycheck associated ty312 tests
check_associated_ty_valuecheck_associated_ty_value311 tests
check_coherencecheck_coherence331 tests
check_cratecheck crate331 tests
check_crate_itemadt71 tests
check_crate_itemtrait331 tests
check_crate_itemtrait impl327 tests
check_drop_impl_always_applicablenot a Drop impl327 tests
check_fields_sizedstruct68 tests
check_safety_matchessafety matches327 tests
check_traitcheck trait331 tests
check_trait_implcheck_trait_impl327 tests
check_trait_impl_itemassociated ty value311 tests
check_trait_itemassociated ty in trait312 tests
check_trait_manually_implementablenot Sized327 tests
is_local_parameterlocal rigid type13 tests
is_local_trait_reflocal parameter14 tests
is_local_trait_reflocal trait322 tests
is_not_downstreamrigid4 tests
is_not_downstreamvia normalize1 test
orphan_checkorphan_check327 tests
overlap_check_impldifferent trait311 tests
overlap_check_implsame impl327 tests
prove_afterprove_after363 tests
prove_eqexistential341 tests
prove_eqsymmetric338 tests
prove_existential_var_eqexistential-nonvar73 tests
prove_existential_var_eqexistential-universal332 tests
prove_normalizenormalize-via-impl73 tests
prove_predicateeq349 tests
prove_predicateparameter well formed321 tests
prove_predicatepositive impl337 tests
prove_predicatetrait ref is local328 tests
prove_predicate_listnone364 tests
prove_predicate_listsome363 tests
prove_wftuples317 tests

Premises failed (0)

This test records no negative coverage.

Proof trees

Proof tree

How to read this page