about summary refs log tree commit diff
path: root/tests/ui/impl-trait/extra-item.rs
blob: dab3df592f2f1cd3deadbfdc1edf152c9d85e87d (plain)
1
2
3
4
5
6
7
8
9
10
//@ 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() {}