rust/tests/ui/issues/auxiliary/issue-8044.rs
2023-01-11 09:32:08 +00:00

16 lines
242 B
Rust

pub struct BTree<V> {
pub node: TreeItem<V>,
}
pub enum TreeItem<V> {
TreeLeaf { value: V },
}
pub fn leaf<V>(value: V) -> TreeItem<V> {
TreeItem::TreeLeaf { value: value }
}
fn main() {
BTree::<isize> { node: leaf(1) };
}