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