zng/tests/macro-tests/cases/widget/name_conflict2.rs

13 lines
356 B
Rust

use zng::prelude_wgt::{widget, WidgetBase};
#[widget($crate::TestWidget)]
pub struct TestWidget(WidgetBase);
#[widget($crate::TestWidget)]
pub struct TestWidget(WidgetBase);
// the hash for the widget path is the same, so unfortunately all generated macros end-up with the same name, at least the
// just the second widget is highlighted?
fn main() {}