blob: 0ba682dde15c3550e99e262694f027761c98a093 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// Test to ensure private traits are inaccessible with UFCS angle-bracket syntax.
mod foo {
trait Bar {
fn baz() {}
}
impl Bar for i32 {}
}
fn main() {
<i32 as crate::foo::Bar>::baz(); //~ERROR trait `Bar` is private
}
|