rust/tests/ui/issues/auxiliary/issue-8044.rs

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) };
}