13 lines
303 B
Rust
13 lines
303 B
Rust
#[test]
|
|
fn test_derive_context() {
|
|
use gpui::{App, EntityId, Window};
|
|
use gpui_macros::{AppContext, VisualContext};
|
|
|
|
#[derive(AppContext, VisualContext)]
|
|
struct _MyCustomContext<'a, 'b> {
|
|
#[app]
|
|
app: &'a mut App,
|
|
#[window]
|
|
window: &'b mut Window,
|
|
}
|
|
}
|