//@ known-bug: #121538 //@ compile-flags: -Cdebuginfo=2 use std::marker::PhantomData; struct Digit { elem: T } struct Node { m: PhantomData<&'static T> } enum FingerTree { Single(T), Deep( Digit, Node>>, ) } enum Wrapper { Simple, Other(FingerTree), } fn main() { let w = Some(Wrapper::Simple::); }