//@ run-pass //@ aux-build:associated-const-cc-lib.rs extern crate associated_const_cc_lib as foolib; pub struct LocalFooUseDefault; impl foolib::FooDefault for LocalFooUseDefault {} pub struct LocalFooOverwriteDefault; impl foolib::FooDefault for LocalFooOverwriteDefault { const BAR: usize = 4; } fn main() { assert_eq!(1, ::BAR); assert_eq!(2, ::BAR); assert_eq!(1, ::BAR); assert_eq!(4, ::BAR); }