2 // Test calling methods on an impl for a bare trait.
4 // aux-build:traitimpl.rs
6 extern crate traitimpl;
9 static mut COUNT: usize = 1;
17 unsafe { COUNT *= 2; }
20 unsafe { COUNT *= 3; }
27 impl<'a> Bar<'a> for Foo {}
36 unsafe { assert_eq!(COUNT, 12); }
39 let x: &dyn Bar = &Foo;