mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-29 12:38:02 +00:00
14 lines
336 B
Rust
14 lines
336 B
Rust
use gpui::{elements::Empty, Element, ViewContext};
|
|
// use gpui_macros::Element;
|
|
|
|
#[test]
|
|
fn test_derive_render_element() {
|
|
#[derive(Element)]
|
|
struct TestElement {}
|
|
|
|
impl TestElement {
|
|
fn render<V: 'static>(&mut self, _: &mut V, _: &mut ViewContext<V>) -> impl Element<V> {
|
|
Empty::new()
|
|
}
|
|
}
|
|
}
|