#![feature(optin_builtin_traits)] pub mod bar { use std::marker; pub auto trait Bar {} pub trait Foo { fn foo(&self) {} } impl Foo { pub fn test(&self) {} } pub struct TypeId; impl TypeId { pub fn of() -> TypeId { panic!() } } }