rust/tests/ui/imports/import-trait-method.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
99 B
Rust
Raw Normal View History

trait Foo {
fn foo();
}
use Foo::foo; //~ ERROR not directly importable
fn main() { foo(); }