blob: fec7f41340ae99e7fb85b6635ba842268358d1ba (
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 ::foo::Bar>::baz(); //~ERROR trait `Bar` is private
}
|