slate-framework 1.0.1

GPU-accelerated Rust UI framework — umbrella crate
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Compile-fail test: external crates must NOT be able to impl IntoElement.
//! The sealed pattern prevents this — `IntoElement: sealed::Sealed` and
//! `Sealed` is `pub(crate)`, so this file (treated as an external user) cannot
//! satisfy the bound.

struct ExternalType;

impl slate_framework::IntoElement for ExternalType {
    type Element = ExternalType;
    fn into_element(self) -> Self::Element {
        self
    }
}

fn main() {}