rust/tests/ui/impl-trait/extra-item.rs

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

11 lines
217 B
Rust
Raw Normal View History

//@ aux-build:extra-item.rs
//@ compile-flags:--extern extra_item
struct S;
impl extra_item::MyTrait for S {
fn extra() {} //~ ERROR method `extra` is not a member of trait `extra_item::MyTrait`
}
fn main() {}