1 2 3 4 5 6 7 8 9 10 11 12
#![feature(const_trait_impl, effects)] pub const fn foo() {} #[const_trait] pub trait Bar { fn bar(); } impl Bar for () { fn bar() {} }