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

Judgment check_trait_manually_implementable

judgment_fn! {
    /// Validate that the trait can be implemented by hand. `Sized` can't (rustc's E0322).
    fn check_trait_manually_implementable(
        trait_id: TraitId,
    ) => () {
        /* rules omitted */
    }
}

Source: crates/formality-rust/src/check/impls.rs:76

The number on each rule’s conclusion is positive coverage; the number on each premise is negative coverage. Click a number to browse the tests.

Sized
LineCoverageSource
84✗(if trait_id.is_sized())
852(fail "explicit impls for the `Sized` trait are not permitted")
──────── ("Sized")
87✗(check_trait_manually_implementable(trait_id) => ())
not Sized
LineCoverageSource
91✗(if !trait_id.is_sized())
──────── ("not Sized")
93327(check_trait_manually_implementable(trait_id) => ())

How to read this page