mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-27 19:02:07 +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()
|
|
}
|
|
}
|
|
}
|