about summary refs log tree commit diff
path: root/tests/ui/privacy/issue-119463.rs
blob: 7a7440a790b8972cf9d1f37144bd6772f9298778 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//@ aux-build:issue-119463-extern.rs

extern crate issue_119463_extern;

struct S;

impl issue_119463_extern::PrivateTrait for S {
    //~^ ERROR: trait `PrivateTrait` is private
    const FOO: usize = 1;

    fn nonexistent() {}
    //~^ ERROR: method `nonexistent` is not a member of trait
}

fn main() {}