]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/method-private.rs
Auto merge of #87284 - Aaron1011:remove-paren-special, r=petrochenkov
[rust.git] / src / test / ui / traits / method-private.rs
1 mod inner {
2     pub trait Bar {
3         fn method(&self);
4     }
5
6     pub struct Foo;
7
8     impl Foo {
9         fn method(&self) {}
10     }
11
12     impl Bar for Foo {
13         fn method(&self) {}
14     }
15 }
16
17 fn main() {
18     let foo = inner::Foo;
19     foo.method(); //~ ERROR is private
20 }