use std::rc::Rc; use std::sync::Arc; struct Foo(Arc); enum Bar { A(Rc), B(Option), } fn f(_: T) {} fn main() { f(Foo(Arc::new(Bar::B(None)))); //~^ ERROR E0277 //~| ERROR E0277 }