2016-07-13 01:36:09 -04:00
|
|
|
trait Foo {
|
|
|
|
|
fn foo();
|
|
|
|
|
}
|
|
|
|
|
|
2024-12-25 14:54:49 +08:00
|
|
|
use Foo::foo; //~ ERROR `use` associated items of traits is unstable [E0658]
|
2016-07-13 01:36:09 -04:00
|
|
|
|
2024-12-25 14:54:49 +08:00
|
|
|
fn main() { foo(); } //~ ERROR type annotations needed
|