summaryrefslogtreecommitdiffstats
path: root/tests/ui/imports/import-trait-method.rs
blob: 97dd68f1e76e76949410640b0821cef15b34e329 (plain)
1
2
3
4
5
6
7
trait Foo {
    fn foo();
}

use Foo::foo; //~ ERROR not directly importable

fn main() { foo(); }