zng/tests/macro-tests/cases/property/cannot_declare_lifetime.rs

10 lines
181 B
Rust

use zng::prelude_wgt::{property, UiNode};
#[property(CONTEXT)]
pub fn invalid<'a>(child: impl UiNode, input: &'a str) -> impl UiNode {
let _ = input;
child
}
fn main() {}