about summary refs log tree commit diff
path: root/tests/ui/imports/import-trait-method.rs
blob: a24b3a1364447e9b27275a1967e3a04fff1cf877 (plain)
1
2
3
4
5
6
7
trait Foo {
    fn foo();
}

use Foo::foo; //~ ERROR `use` associated items of traits is unstable [E0658]

fn main() { foo(); } //~ ERROR type annotations needed