// error-pattern:instantiating a copyable type parameter with a noncopyable fn foo() { 1u.bar::(); } impl methods for uint { fn bar() { } } fn main() {}